Skip to content

Commit 07b17f9

Browse files
authored
log: emit error level string as "error", not "eror" (#28774)
1 parent 877d094 commit 07b17f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log/logger.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func LevelAlignedString(l slog.Level) string {
8383
}
8484
}
8585

86-
// LevelString returns a 5-character string containing the name of a Lvl.
86+
// LevelString returns a string containing the name of a Lvl.
8787
func LevelString(l slog.Level) string {
8888
switch l {
8989
case LevelTrace:
@@ -95,7 +95,7 @@ func LevelString(l slog.Level) string {
9595
case slog.LevelWarn:
9696
return "warn"
9797
case slog.LevelError:
98-
return "eror"
98+
return "error"
9999
case LevelCrit:
100100
return "crit"
101101
default:

0 commit comments

Comments
 (0)