mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-28 12:14:22 +01:00
Output number of commits at info-level. (#991)
This commit is contained in:
1 parent
177e9f4fc2
commit
55d1da131a
1 file changed
+2
-1
+2
-1
@@ -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")
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user