]> source.dussan.org Git - gitea.git/commitdiff
Record error when fail to health check repository
authorUnknwon <u@gogs.io>
Thu, 28 Jan 2016 11:46:25 +0000 (06:46 -0500)
committerUnknwon <u@gogs.io>
Thu, 28 Jan 2016 11:46:25 +0000 (06:46 -0500)
models/repo.go

index e53d8065761146633c941bceaf0ccd0a09c06632..8ce1f7190cc39c1e9d7ee8aa5232f6c3e428e8cf 100644 (file)
@@ -1602,7 +1602,7 @@ func GitFsck() {
                        repo := bean.(*Repository)
                        repoPath := repo.RepoPath()
                        if err := git.Fsck(repoPath, setting.Cron.RepoHealthCheck.Timeout, setting.Cron.RepoHealthCheck.Args...); err != nil {
-                               desc := fmt.Sprintf("Fail to health check repository(%s)", repoPath)
+                               desc := fmt.Sprintf("Fail to health check repository (%s): %v", repoPath, err)
                                log.Warn(desc)
                                if err = CreateRepositoryNotice(desc); err != nil {
                                        log.Error(4, "CreateRepositoryNotice: %v", err)