Do not log if no hits were passed

This commit is contained in:
Tony Blyler 2024-09-28 16:24:43 -04:00
parent 7bcf16a1d4
commit 1ea4ef9353
No known key found for this signature in database

View file

@ -100,6 +100,10 @@ func main() {
return return
} }
if counted == 0 {
return
}
slog.InfoContext(ctx, "counted hits across all sites", slog.Uint64("counted", counted)) slog.InfoContext(ctx, "counted hits across all sites", slog.Uint64("counted", counted))
hits = hits[:0] hits = hits[:0]
} }