Skip to content

Commit

Permalink
promslog: always lowercase log level from CLI (#728)
Browse files Browse the repository at this point in the history
Signed-off-by: Jan-Otto Kröpke <[email protected]>
  • Loading branch information
jkroepke authored Dec 4, 2024
1 parent 2c3c048 commit b88f24c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promslog/slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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
Expand Down

0 comments on commit b88f24c

Please sign in to comment.