From df0229c882f9ef3c69e7d5bcc851c3cf85778137 Mon Sep 17 00:00:00 2001 From: Yuan Teoh <45984206+Yuan325@users.noreply.github.com> Date: Tue, 10 Feb 2026 16:29:01 -0800 Subject: [PATCH] Update internal/log/log.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- internal/log/log.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/log/log.go b/internal/log/log.go index 26eaadfa93..7d8e793577 100644 --- a/internal/log/log.go +++ b/internal/log/log.go @@ -222,14 +222,14 @@ type SplitHandler struct { } func (h *SplitHandler) Enabled(ctx context.Context, level slog.Level) bool { - if level >= slog.LevelError { + if level >= slog.LevelWarn { return h.ErrHandler.Enabled(ctx, level) } return h.OutHandler.Enabled(ctx, level) } func (h *SplitHandler) Handle(ctx context.Context, r slog.Record) error { - if r.Level >= slog.LevelError { + if r.Level >= slog.LevelWarn { return h.ErrHandler.Handle(ctx, r) } return h.OutHandler.Handle(ctx, r)