Skip to content

Commit 1e3e56b

Browse files
committed
Deactivate redis lib logging
1 parent b16c4c0 commit 1e3e56b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

pkg/config/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,9 @@ func envMap() map[string]string {
392392

393393
// UseViper sets the configured instance of Config
394394
func UseViper(v *viper.Viper) error {
395+
// deactivate redis lib logging
396+
redis.SetLogger(nil)
397+
395398
fsURL, err := url.Parse(v.GetString("fs.url"))
396399
if err != nil {
397400
return err

pkg/logger/logger.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@ func Init(opt Options) error {
4848
go subscribeLoggersDebug(cli)
4949
}
5050
opts = opt
51-
if logLevel != logrus.DebugLevel {
52-
// remove logging from go-redis library
53-
redis.SetLogger(nil)
54-
}
5551
return nil
5652
}
5753

0 commit comments

Comments
 (0)