Skip to content

Commit

Permalink
Make level strings case-insensitive
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden authored and Antoine Grondin committed Dec 6, 2022
1 parent 86b63de commit d60b7b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/sink/stdiosink/stdio.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (std *Stdio) Receive(ev *model.Event) error {

lvl := strings.ToUpper(data.Level)[:imin(4, len(data.Level))]
var level string
switch data.Level {
switch strings.ToLower(data.Level) {
case "debug":
level = std.opts.Palette.DebugLevelColor.Sprint(lvl)
case "info":
Expand Down

0 comments on commit d60b7b4

Please sign in to comment.