Skip to content

Commit 6935658

Browse files
Change github file extension log message verbosity (#4159)
These can get really spammy in certain contexts, so updating them to be shown less often
1 parent a663369 commit 6935658

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/handlers/archive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ func (h *archiveHandler) extractorHandler(dataOrErrChan chan DataOrErr) func(con
202202
}
203203

204204
if common.SkipFile(file.Name()) || common.IsBinary(file.Name()) {
205-
lCtx.Logger().V(3).Info("skipping file: extension is ignored")
205+
lCtx.Logger().V(4).Info("skipping file: extension is ignored")
206206
h.metrics.incFilesSkipped()
207207
return nil
208208
}

pkg/handlers/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func (h *defaultHandler) handleNonArchiveContent(
9999
mimeExt := reader.mimeExt
100100

101101
if common.SkipFile(mimeExt) || common.IsBinary(mimeExt) {
102-
ctx.Logger().V(3).Info("skipping file: extension is ignored", "ext", mimeExt)
102+
ctx.Logger().V(4).Info("skipping file: extension is ignored", "ext", mimeExt)
103103
h.metrics.incFilesSkipped()
104104
// Make sure we consume the reader to avoid potentially blocking indefinitely.
105105
_, _ = io.Copy(io.Discard, reader)

0 commit comments

Comments
 (0)