From 55d1da131a41520929c45cf53e320cbf19e837ad Mon Sep 17 00:00:00 2001 From: alexgit2k Date: Wed, 28 Sep 2022 14:32:24 +0200 Subject: [PATCH] Output number of commits at info-level. (#991) --- detect/detect.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/detect/detect.go b/detect/detect.go index 6962b4a6..c0784462 100644 --- a/detect/detect.go +++ b/detect/detect.go @@ -364,7 +364,8 @@ func (d *Detector) DetectGit(source string, logOpts string, gitScanType GitScanT if err := s.Wait(); err != nil { return d.findings, err } - log.Debug().Msgf("%d commits scanned. Note: this number might be smaller than expected due to commits with no additions", len(d.commitMap)) + log.Info().Msgf("%d commits scanned.", len(d.commitMap)) + log.Debug().Msg("Note: this number might be smaller than expected due to commits with no additions") if git.ErrEncountered { return d.findings, fmt.Errorf("%s", "git error encountered, see logs") }