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

pull/28780/head
jwasinger 11 months ago committed by GitHub
parent 877d09443d
commit 07b17f991b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      log/logger.go

@ -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:

Loading…
Cancel
Save