diff --git a/common/log/log.go b/common/log/log.go index 48a9b2e3d..661c37e03 100644 --- a/common/log/log.go +++ b/common/log/log.go @@ -88,6 +88,10 @@ func SetLogLevel(level LogLevel) { if level <= ErrorLevel { errorLogger = streamLoggerInstance } + + if level == NoneLevel { + accessLoggerInstance = noOpLoggerInstance + } } func InitErrorLogger(file string) error {