mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 10:08:15 -05:00
disable access log if log level = none
This commit is contained in:
parent
2f9b8a955c
commit
2739cf2f4a
@ -88,6 +88,10 @@ func SetLogLevel(level LogLevel) {
|
||||
if level <= ErrorLevel {
|
||||
errorLogger = streamLoggerInstance
|
||||
}
|
||||
|
||||
if level == NoneLevel {
|
||||
accessLoggerInstance = noOpLoggerInstance
|
||||
}
|
||||
}
|
||||
|
||||
func InitErrorLogger(file string) error {
|
||||
|
Loading…
Reference in New Issue
Block a user