diff --git a/promslog/slog.go b/promslog/slog.go index 1677605a..a70eb6a4 100644 --- a/promslog/slog.go +++ b/promslog/slog.go @@ -115,7 +115,7 @@ func (l *AllowedLevel) Set(s string) error { l.lvl = &slog.LevelVar{} } - switch s { + switch strings.ToLower(s) { case "debug": l.lvl.Set(slog.LevelDebug) callerAddFunc = true