mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-03 04:50:52 +08:00
fix(logging): normalize warning level to warn
This commit is contained in:
@@ -45,7 +45,11 @@ func (m *LogFormatter) Format(entry *log.Entry) ([]byte, error) {
|
||||
reqID = id
|
||||
}
|
||||
|
||||
levelStr := fmt.Sprintf("%-5s", entry.Level.String())
|
||||
level := entry.Level.String()
|
||||
if level == "warning" {
|
||||
level = "warn"
|
||||
}
|
||||
levelStr := fmt.Sprintf("%-5s", level)
|
||||
|
||||
var formatted string
|
||||
if reqID != "" && entry.Caller != nil {
|
||||
|
||||
Reference in New Issue
Block a user