Skip to content

Commit

Permalink
linter part2
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn committed Aug 13, 2023
1 parent 9e92c6d commit 02b9a48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/slog/slog_redirect.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (h *Handler) Log(e log.Entry) {

r := slog.NewRecord(e.Timestamp, slog.Level(e.Level), e.Message, 0)
r.AddAttrs(h.convertFields(e.Fields)...)
h.handler.Handle(context.Background(), r)
_ = h.handler.Handle(context.Background(), r)
}

func (h *Handler) convertFields(fields []log.Field) []slog.Attr {
Expand Down

0 comments on commit 02b9a48

Please sign in to comment.