disable access log if log level = none

pull/168/head v1.12.7
v2ray 2016-05-08 23:01:27 -07:00
parent 2f9b8a955c
commit 2739cf2f4a
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ func SetLogLevel(level LogLevel) {
if level <= ErrorLevel {
errorLogger = streamLoggerInstance
}
if level == NoneLevel {
accessLoggerInstance = noOpLoggerInstance
}
}
func InitErrorLogger(file string) error {