log an error when a synchronisation fails (#5543)
This commit is contained in:
parent
b4f012cd13
commit
b439e031ad
|
@ -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)))
|
||||
|
|
Reference in New Issue