소스 검색

better log

zach rice 7 년 전
부모
커밋
9939c638ec
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      main.go

+ 2 - 2
main.go

@@ -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)
 	}
 }