mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-22 01:57:12 -05:00
Log level: none
This commit is contained in:
parent
8b71647b9d
commit
cef5386a21
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user