mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-14 08:57:40 +00:00
chore: increase level for verbose log (#3589)
This commit is contained in:
parent
1f22522e86
commit
61304007df
2 changed files with 2 additions and 2 deletions
|
@ -182,7 +182,7 @@ func (h *archiveHandler) extractorHandler(archiveChan chan []byte) func(context.
|
|||
}
|
||||
|
||||
if common.SkipFile(file.Name()) || common.IsBinary(file.Name()) {
|
||||
lCtx.Logger().V(2).Info("skipping file: extension is ignored")
|
||||
lCtx.Logger().V(3).Info("skipping file: extension is ignored")
|
||||
h.metrics.incFilesSkipped()
|
||||
return nil
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ func (h *defaultHandler) handleNonArchiveContent(ctx logContext.Context, reader
|
|||
mimeExt := reader.mimeExt
|
||||
|
||||
if common.SkipFile(mimeExt) || common.IsBinary(mimeExt) {
|
||||
ctx.Logger().V(2).Info("skipping file: extension is ignored", "ext", mimeExt)
|
||||
ctx.Logger().V(3).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)
|
||||
|
|
Loading…
Reference in a new issue