Disable logging by default.

This commit is contained in:
Vladimir Mihailenco 2016-04-06 13:19:00 +03:00
parent b9c6dcef57
commit ebbeb40416
1 changed files with 2 additions and 6 deletions

View File

@ -2,18 +2,14 @@ package redis // import "gopkg.in/redis.v3"
import (
"fmt"
"io/ioutil"
"log"
"os"
"gopkg.in/redis.v3/internal/pool"
)
// Deprecated. Use SetLogger instead.
var Logger *log.Logger
func init() {
SetLogger(log.New(os.Stderr, "redis: ", log.LstdFlags))
}
var Logger = log.New(ioutil.Discard, "redis: ", log.LstdFlags)
func SetLogger(logger *log.Logger) {
Logger = logger