Skip to content

Commit b88f24c

Browse files
authored
promslog: always lowercase log level from CLI (#728)
Signed-off-by: Jan-Otto Kröpke <[email protected]>
1 parent 2c3c048 commit b88f24c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

promslog/slog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func (l *AllowedLevel) Set(s string) error {
118118
l.lvl = &slog.LevelVar{}
119119
}
120120

121-
switch s {
121+
switch strings.ToLower(s) {
122122
case "debug":
123123
l.lvl.Set(slog.LevelDebug)
124124
callerAddFunc = true

0 commit comments

Comments
 (0)