changeset 1265:08ac2c3ae810 beta

added some info to corrupted repo message that helps diagnose the cause from log itself.
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 17 Apr 2011 16:26:40 +0200
parents 0c43c6671815
children a1bcfe58a1ab
files rhodecode/model/scm.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Sun Apr 17 14:45:16 2011 +0200
+++ b/rhodecode/model/scm.py	Sun Apr 17 16:26:40 2011 +0200
@@ -140,7 +140,9 @@
                 repo, dbrepo = r_dbr
 
                 if repo is None or dbrepo is None:
-                    log.error('Repository %s looks somehow corrupted', r_name)
+                    log.error('Repository "%s" looks somehow corrupted '
+                              'fs-repo:%s,db-repo:%s both values should be '
+                              'present', r_name, repo, dbrepo)
                     continue
                 last_change = repo.last_change
                 tip = h.get_changeset_safe(repo, 'tip')