From bc62df22237c85777d034d7767cce9e1326839a7 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 18 Apr 2024 00:02:26 +0200 Subject: [PATCH] internal/testlog: fix level matching --- internal/testlog/testlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/testlog/testlog.go b/internal/testlog/testlog.go index 3740dd1f24..ad61af9eac 100644 --- a/internal/testlog/testlog.go +++ b/internal/testlog/testlog.go @@ -58,7 +58,7 @@ func (h *bufHandler) Handle(_ context.Context, r slog.Record) error { } func (h *bufHandler) Enabled(_ context.Context, lvl slog.Level) bool { - return lvl <= h.level + return lvl >= h.level } func (h *bufHandler) WithAttrs(attrs []slog.Attr) slog.Handler {