mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2026-05-16 13:20:35 +00:00
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.
This commit is contained in:
@@ -425,7 +425,7 @@ func handleChunksWithError(
|
||||
if isFatal(dataOrErr.Err) {
|
||||
return dataOrErr.Err
|
||||
}
|
||||
ctx.Logger().Error(dataOrErr.Err, "non-critical error processing chunk")
|
||||
ctx.Logger().V(2).Info("non-critical error processing chunk", "error", dataOrErr.Err)
|
||||
continue
|
||||
}
|
||||
if len(dataOrErr.Data) > 0 {
|
||||
|
||||
Reference in New Issue
Block a user