v2ray 9 éve
szülő
commit
cef5386a21
2 módosított fájl, 3 hozzáadás és 0 törlés
  1. 1 0
      common/log/log.go
  2. 2 0
      shell/point/config_json.go

+ 1 - 0
common/log/log.go

@@ -11,6 +11,7 @@ const (
 	InfoLevel    = LogLevel(1)
 	WarningLevel = LogLevel(2)
 	ErrorLevel   = LogLevel(3)
+	NoneLevel    = LogLevel(999)
 )
 
 type errorLog struct {

+ 2 - 0
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
 	}