Skip to content
This repository was archived by the owner on Aug 2, 2023. It is now read-only.

Commit ec2594a

Browse files
author
Simone Caruso
committed
Respect errorDebug flag when logging
1 parent d05b86f commit ec2594a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reporting/reporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func (r *reporter) Report() {
249249
}
250250
})
251251
actualErrorsCount := r.ErrorsCount()
252-
if actualErrorsCount != lastErrorsCount {
252+
if actualErrorsCount != lastErrorsCount && r.errorDebug {
253253
log.Printf("!!! There was %d errors on the last reporting cycle !!!", (actualErrorsCount - lastErrorsCount))
254254
}
255255
}

0 commit comments

Comments
 (0)