From cef5386a21373247642a0312fb83fd230f0a904a Mon Sep 17 00:00:00 2001 From: v2ray Date: Fri, 29 Apr 2016 11:36:27 +0200 Subject: [PATCH] Log level: none --- common/log/log.go | 1 + shell/point/config_json.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common/log/log.go b/common/log/log.go index e8de6834e..44815ce7d 100644 --- a/common/log/log.go +++ b/common/log/log.go @@ -11,6 +11,7 @@ const ( InfoLevel = LogLevel(1) WarningLevel = LogLevel(2) ErrorLevel = LogLevel(3) + NoneLevel = LogLevel(999) ) type errorLog struct { diff --git a/shell/point/config_json.go b/shell/point/config_json.go index 85dc3b688..7a65d7cd7 100644 --- a/shell/point/config_json.go +++ b/shell/point/config_json.go @@ -76,6 +76,8 @@ func (this *LogConfig) UnmarshalJSON(data []byte) error { this.LogLevel = log.InfoLevel case "error": this.LogLevel = log.ErrorLevel + case "none": + this.LogLevel = log.NoneLevel default: this.LogLevel = log.WarningLevel }