Skip to content

Commit

Permalink
Deactivate redis lib logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jinroh committed Jun 4, 2018
1 parent b16c4c0 commit 1e3e56b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ func envMap() map[string]string {

// UseViper sets the configured instance of Config
func UseViper(v *viper.Viper) error {
// deactivate redis lib logging
redis.SetLogger(nil)

fsURL, err := url.Parse(v.GetString("fs.url"))
if err != nil {
return err
Expand Down
4 changes: 0 additions & 4 deletions pkg/logger/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ func Init(opt Options) error {
go subscribeLoggersDebug(cli)
}
opts = opt
if logLevel != logrus.DebugLevel {
// remove logging from go-redis library
redis.SetLogger(nil)
}
return nil
}

Expand Down

0 comments on commit 1e3e56b

Please sign in to comment.