Change github file extension log message verbosity (#4159)

These can get really spammy in certain contexts, so updating them to be shown
less often
This commit is contained in:
Martin Locklear
2025-05-20 16:44:31 -04:00
committed by GitHub
parent a663369fec
commit 6935658ba9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ func (h *archiveHandler) extractorHandler(dataOrErrChan chan DataOrErr) func(con
}
if common.SkipFile(file.Name()) || common.IsBinary(file.Name()) {
lCtx.Logger().V(3).Info("skipping file: extension is ignored")
lCtx.Logger().V(4).Info("skipping file: extension is ignored")
h.metrics.incFilesSkipped()
return nil
}
+1 -1
View File
@@ -99,7 +99,7 @@ func (h *defaultHandler) handleNonArchiveContent(
mimeExt := reader.mimeExt
if common.SkipFile(mimeExt) || common.IsBinary(mimeExt) {
ctx.Logger().V(3).Info("skipping file: extension is ignored", "ext", mimeExt)
ctx.Logger().V(4).Info("skipping file: extension is ignored", "ext", mimeExt)
h.metrics.incFilesSkipped()
// Make sure we consume the reader to avoid potentially blocking indefinitely.
_, _ = io.Copy(io.Discard, reader)