diff options
Diffstat (limited to 'modules/log/level.go')
-rw-r--r-- | modules/log/level.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/log/level.go b/modules/log/level.go index 6131fcb510..4b89385fe2 100644 --- a/modules/log/level.go +++ b/modules/log/level.go @@ -101,7 +101,7 @@ func (l *Level) UnmarshalJSON(b []byte) error { switch v := tmp.(type) { case string: - *l = FromString(string(v)) + *l = FromString(v) case int: *l = FromString(Level(v).String()) default: |