Skip to content

Commit bc4d5e5

Browse files
committed
fix(log): Improve INFO logs during analysis
1 parent d00067c commit bc4d5e5

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)