log: emit error level string as "error", not "eror" (#28774)

This commit is contained in:
jwasinger
2024-01-08 15:27:33 +01:00
committed by GitHub
parent 877d09443d
commit 07b17f991b
+2 -2
View File
@@ -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 {
switch l {
case LevelTrace:
@@ -95,7 +95,7 @@ func LevelString(l slog.Level) string {
case slog.LevelWarn:
return "warn"
case slog.LevelError:
return "eror"
return "error"
case LevelCrit:
return "crit"
default: