fix log level changing problem

This commit is contained in:
Enes Çakır 2020-04-28 23:29:41 +03:00 committed by drakkan
parent baac3749b3
commit 6bfbb27856

View file

@ -62,7 +62,7 @@ func InitLogger(logFilePath string, logMaxSize int, logMaxBackups int, logMaxAge
lock: new(sync.Mutex)})
consoleLogger = zerolog.Nop()
}
logger.Level(level)
logger = logger.Level(level)
}
// DisableLogger disable the main logger.