log: emit error level string as "error". not "eror"

This commit is contained in:
Jared Wasinger 2024-01-08 05:18:44 -08:00
parent 877d09443d
commit a68d4b55b5

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: