summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-01-28 06:46:25 -0500
committerUnknwon <u@gogs.io>2016-01-28 06:46:25 -0500
commite2dde6eb0a3a6ccc472346f6e4f72e3f62db494e (patch)
tree48ed0148327d3e557e20ef3ae6d1200964e991d1 /models
parentb900150b1d01b6902ba05765ebce082164ec8dfd (diff)
downloadgitea-e2dde6eb0a3a6ccc472346f6e4f72e3f62db494e.tar.gz
gitea-e2dde6eb0a3a6ccc472346f6e4f72e3f62db494e.zip
Record error when fail to health check repository
Diffstat (limited to 'models')
-rw-r--r--models/repo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/repo.go b/models/repo.go
index e53d806576..8ce1f7190c 100644
--- a/models/repo.go
+++ b/models/repo.go
@@ -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)