From 16a4354b48d4ae3e0160a9d48fa883bab971402c Mon Sep 17 00:00:00 2001 From: TJ Hoplock Date: Fri, 15 Nov 2024 15:48:34 -0500 Subject: [PATCH] chore(deduper): add compile check that slog.Handler int is satisfied Signed-off-by: TJ Hoplock --- util/logging/dedupe.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/util/logging/dedupe.go b/util/logging/dedupe.go index d5aee5c09..e7dff20f7 100644 --- a/util/logging/dedupe.go +++ b/util/logging/dedupe.go @@ -26,6 +26,8 @@ const ( maxEntries = 1024 ) +var _ slog.Handler = (*Deduper)(nil) + // Deduper implements *slog.Handler, dedupes log lines based on a time duration. type Deduper struct { next *slog.Logger