mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-22 03:30:35 +00:00
log: emit error level string as "error", not "eror" (#28774)
This commit is contained in:
parent
877d09443d
commit
07b17f991b
@ -83,7 +83,7 @@ func LevelAlignedString(l slog.Level) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// LevelString returns a 5-character string containing the name of a Lvl.
|
// LevelString returns a string containing the name of a Lvl.
|
||||||
func LevelString(l slog.Level) string {
|
func LevelString(l slog.Level) string {
|
||||||
switch l {
|
switch l {
|
||||||
case LevelTrace:
|
case LevelTrace:
|
||||||
@ -95,7 +95,7 @@ func LevelString(l slog.Level) string {
|
|||||||
case slog.LevelWarn:
|
case slog.LevelWarn:
|
||||||
return "warn"
|
return "warn"
|
||||||
case slog.LevelError:
|
case slog.LevelError:
|
||||||
return "eror"
|
return "error"
|
||||||
case LevelCrit:
|
case LevelCrit:
|
||||||
return "crit"
|
return "crit"
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user