Skip to content

Commit

Permalink
fix(logging): compare log level case insensitively (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
moleus authored Dec 20, 2024
1 parent 514ac01 commit 3c37b2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/logging/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func sanitize(msg string) string {
}

func ParseLogLevel(level string) slog.Level {
switch level {
switch strings.ToLower(level) {
case "debug":
return slog.LevelDebug
case "info":
Expand Down

0 comments on commit 3c37b2c

Please sign in to comment.