Skip to content

Commit

Permalink
Don't use sentry for the enabled feature with slog
Browse files Browse the repository at this point in the history
  • Loading branch information
af-afk committed Jun 25, 2024
1 parent 9723a22 commit 7086257
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/setup/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type Multihandler struct {

func (h Multihandler) Enabled(ctx context.Context, record slog.Level) bool {
// The JSON handler should be the furthest we're going.
return h.sentry.Enabled(ctx, record)
return h.json.Enabled(ctx, record)
}
func (h Multihandler) WithAttrs(attrs []slog.Attr) slog.Handler {
var s slog.Handler
Expand Down

0 comments on commit 7086257

Please sign in to comment.