Skip to content

Commit

Permalink
fix extra spaces in pkg/slogcolor/handler.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Oct 25, 2024
1 parent 9781259 commit 85ef46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/slogcolor/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func (h *Handler) Handle(_ context.Context, r slog.Record) error {
case slog.LevelDebug:
fmt.Fprint(bf, color.New(color.BgCyan, color.FgHiWhite).Sprint("DEBUG"))
case slog.LevelInfo:
fmt.Fprint(bf, color.New(color.BgGreen, color.FgHiWhite).Sprint("INFO "))
fmt.Fprint(bf, color.New(color.BgGreen, color.FgHiWhite).Sprint("INFO"))
case slog.LevelWarn:
fmt.Fprint(bf, color.New(color.BgYellow, color.FgHiWhite).Sprint("WARN "))
fmt.Fprint(bf, color.New(color.BgYellow, color.FgHiWhite).Sprint("WARN"))
case slog.LevelError:
fmt.Fprint(bf, color.New(color.BgRed, color.FgHiWhite).Sprint("ERROR"))
}
Expand Down

0 comments on commit 85ef46a

Please sign in to comment.