mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
better log
This commit is contained in:
1 parent
ed3a512b4b
commit
9939c638ec
1 file changed
+2
-2
@@ -227,9 +227,9 @@ func main() {
|
||||
writeReport(leaks)
|
||||
}
|
||||
|
||||
log.Infof("%d commits inspected, %d leaks detected", totalCommits, len(leaks))
|
||||
log.Infof("%d commits inspected", totalCommits)
|
||||
if len(leaks) != 0 {
|
||||
log.Warnf("leaks detected")
|
||||
log.Warnf("%d leaks detected", len(leaks))
|
||||
os.Exit(leakExit)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user