Skip to content

Commit ab76fe4

Browse files
Reduce verbosity of chunk trace logging (#4161)
These log lines are hit super frequently - we really only want them to show up when we are at trace level. Reducing them here.
1 parent bbe0b06 commit ab76fe4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/engine/engine.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,7 +1055,7 @@ func (e *Engine) detectChunk(ctx context.Context, data detectableChunk) {
10551055
"chunk_source_id", data.chunk.SourceID,
10561056
"chunk_source_metadata", data.chunk.SourceMetadata.String())
10571057

1058-
ctx.Logger().V(4).Info("Starting to detect chunk")
1058+
ctx.Logger().V(5).Info("Starting to detect chunk")
10591059

10601060
isFalsePositive := detectors.GetFalsePositiveCheck(data.detector.Detector)
10611061

@@ -1127,7 +1127,7 @@ func (e *Engine) detectChunk(ctx context.Context, data detectableChunk) {
11271127

11281128
matchesPerChunk.Observe(float64(matchCount))
11291129

1130-
ctx.Logger().V(4).Info("Finished detecting chunk")
1130+
ctx.Logger().V(5).Info("Finished detecting chunk")
11311131

11321132
data.wgDoneFn()
11331133
}

0 commit comments

Comments
 (0)