We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b16c4c0 commit 1e3e56bCopy full SHA for 1e3e56b
pkg/config/config.go
@@ -392,6 +392,9 @@ func envMap() map[string]string {
392
393
// UseViper sets the configured instance of Config
394
func UseViper(v *viper.Viper) error {
395
+ // deactivate redis lib logging
396
+ redis.SetLogger(nil)
397
+
398
fsURL, err := url.Parse(v.GetString("fs.url"))
399
if err != nil {
400
return err
pkg/logger/logger.go
@@ -48,10 +48,6 @@ func Init(opt Options) error {
48
go subscribeLoggersDebug(cli)
49
}
50
opts = opt
51
- if logLevel != logrus.DebugLevel {
52
- // remove logging from go-redis library
53
- redis.SetLogger(nil)
54
- }
55
return nil
56
57
0 commit comments