Do not log if no hits were passed
This commit is contained in:
parent
7bcf16a1d4
commit
1ea4ef9353
1 changed files with 4 additions and 0 deletions
4
main.go
4
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]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue