From 7086257d9b849fa472cbc0e683791f508bc6ae23 Mon Sep 17 00:00:00 2001 From: bayge Date: Tue, 25 Jun 2024 18:18:10 +0930 Subject: [PATCH] Don't use sentry for the enabled feature with slog --- lib/setup/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/setup/setup.go b/lib/setup/setup.go index 44c65652..39f7ca34 100644 --- a/lib/setup/setup.go +++ b/lib/setup/setup.go @@ -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