mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
disable access log if log level = none
This commit is contained in:
@@ -88,6 +88,10 @@ func SetLogLevel(level LogLevel) {
|
||||
if level <= ErrorLevel {
|
||||
errorLogger = streamLoggerInstance
|
||||
}
|
||||
|
||||
if level == NoneLevel {
|
||||
accessLoggerInstance = noOpLoggerInstance
|
||||
}
|
||||
}
|
||||
|
||||
func InitErrorLogger(file string) error {
|
||||
|
||||
Reference in New Issue
Block a user