Skip to content

Commit cf31c26

Browse files
authored
Log non-critical chunk errors at V(2).Info instead of Error (#4928)
Non-fatal scanning errors aren't really "errors" - they're consequences of the vicissitudes of scanning a ton of data. They're actionable if you're looking for them but if you're not they're extremely noisy. This commit downgrades them to only show up when you look for them.
1 parent 99dc7bd commit cf31c26

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/handlers/handlers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ func handleChunksWithError(
425425
if isFatal(dataOrErr.Err) {
426426
return dataOrErr.Err
427427
}
428-
ctx.Logger().Error(dataOrErr.Err, "non-critical error processing chunk")
428+
ctx.Logger().V(2).Info("non-critical error processing chunk", "error", dataOrErr.Err)
429429
continue
430430
}
431431
if len(dataOrErr.Data) > 0 {

0 commit comments

Comments
 (0)