summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2014-09-19 10:05:37 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2014-09-19 10:05:54 (GMT)
commitb439e031adbadcb5979381640c1f8f393c53dcc4 (patch)
treedc20d53d16de9dc0152babd0b69ebe27a4b14f9f
parentb4f012cd13699b8347f89b881b7000876021e896 (diff)
downloadtabellio.pcfdb-b439e031adbadcb5979381640c1f8f393c53dcc4.zip
tabellio.pcfdb-b439e031adbadcb5979381640c1f8f393c53dcc4.tar.gz
tabellio.pcfdb-b439e031adbadcb5979381640c1f8f393c53dcc4.tar.bz2
log an error when a synchronisation fails (#5543)
-rw-r--r--tabellio/pcfdb/sync.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 1c4d488..bce222c 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -334,7 +334,11 @@ class SyncFromPcfDbView(BrowserView):
if not object in objects:
continue
t0 = time.time()
- result = getattr(self, 'sync_'+object)(timestamp)
+ try:
+ result = getattr(self, 'sync_'+object)(timestamp)
+ except:
+ log.error('error during synchro of %s' % object)
+ raise
duration = time.time() - t0
report.append('%-14s: %6s [%s]' % (object, result, format_duration(duration)))
log.info('sync: %-14s: %6s [%s]' % (object, result, format_duration(duration)))