Skip to content

Commit 775032c

Browse files
Merge pull request #16 from GitGuardian/sguillaume/15/improve-verbose-output
fix(log): Improve INFO logs during analysis
2 parents a1b0ec6 + bc4d5e5 commit 775032c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/src-fingerprint/main.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ loop:
260260
}
261261
}
262262
case <-ticker:
263-
if totalRepo == 0 {
263+
if totalRepo == 0 || gitFilesCount == 0 {
264264
continue
265265
}
266266

@@ -269,7 +269,8 @@ loop:
269269
}
270270
}
271271

272-
log.Infof("Final stats:\n%v/%v repos: %v files analyzed\n",
272+
log.Infoln("Final stats:")
273+
log.Infof("%v/%v repos: %v files analyzed\n",
273274
doneRepo, totalRepo, gitFilesCount)
274275
log.Infof("Dumping to output %v\n", c.String("output"))
275276

0 commit comments

Comments
 (0)