better log

This commit is contained in:
zach rice committed 2018-10-09 21:07:49 -05:00
1 parent ed3a512b4b
commit 9939c638ec
1 file changed
+2 -2
+2 -2
View File
@@ -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)
}
}