mirror of
https://github.com/v2fly/v2ray-core
synced 2024-02-27 03:18:06 +00:00
Log level: none
This commit is contained in:
@@ -11,6 +11,7 @@ const (
|
||||
InfoLevel = LogLevel(1)
|
||||
WarningLevel = LogLevel(2)
|
||||
ErrorLevel = LogLevel(3)
|
||||
NoneLevel = LogLevel(999)
|
||||
)
|
||||
|
||||
type errorLog struct {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user