disable access log if log level = none

pull/168/head v1.12.7
v2ray 9 years ago
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…
Cancel
Save