Skip to content

Commit

Permalink
log: emit error level string as "error", not "eror" (#28774)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger committed Jan 8, 2024
1 parent 877d094 commit 07b17f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions log/logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 07b17f9

Please sign in to comment.