Skip to content

Commit

Permalink
log: emit error level string as "error", not "eror" (ethereum#28774)
Browse files Browse the repository at this point in the history
  • Loading branch information
jwasinger authored and Dergarcon committed Jan 31, 2024
1 parent dc21bbe commit f933ec8
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 f933ec8

Please sign in to comment.