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:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user