disable access log if log level = none

This commit is contained in:
v2ray
2016-05-08 23:01:27 -07:00
parent 2f9b8a955c
commit 2739cf2f4a
+4
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 {