1
0
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:
v2ray 2016-05-08 23:01:27 -07:00
parent 2f9b8a955c
commit 2739cf2f4a

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 {