Skip to content

Commit

Permalink
Merge pull request redis#294 from go-redis/fix/disable-logs
Browse files Browse the repository at this point in the history
Disable logging by default.
  • Loading branch information
vmihailenco committed Apr 6, 2016
2 parents ff5145a + ebbeb40 commit ad28227
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad28227

Please sign in to comment.