From 1ea4ef935313e21c0b0c3c54f5ec73747f192a14 Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Sat, 28 Sep 2024 16:24:43 -0400 Subject: [PATCH] Do not log if no hits were passed --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index f20d674..0048958 100644 --- a/main.go +++ b/main.go @@ -100,6 +100,10 @@ func main() { return } + if counted == 0 { + return + } + slog.InfoContext(ctx, "counted hits across all sites", slog.Uint64("counted", counted)) hits = hits[:0] }