Fix clashapi log level format error

This commit is contained in:
GyDi 2022-09-08 18:04:06 +08:00 committed by GitHub
parent f376683fc3
commit 9cef2a0a8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ func getConfigs(logFactory log.Factory) func(w http.ResponseWriter, r *http.Requ
logLevel := logFactory.Level() logLevel := logFactory.Level()
if logLevel == log.LevelTrace { if logLevel == log.LevelTrace {
logLevel = log.LevelDebug logLevel = log.LevelDebug
} else if logLevel > log.LevelError { } else if logLevel < log.LevelError {
logLevel = log.LevelError logLevel = log.LevelError
} }
render.JSON(w, r, &configSchema{ render.JSON(w, r, &configSchema{