debug(minor): print trace for failed events in tests
This commit is contained in:
parent
049f04a452
commit
df8075bd1d
1 changed files with 2 additions and 0 deletions
|
|
@ -213,6 +213,8 @@ def sync(update, producer_site, event_producer, in_retry=False):
|
|||
|
||||
except Exception:
|
||||
if in_retry:
|
||||
if frappe.flags.in_test:
|
||||
print(frappe.get_traceback())
|
||||
return 'Failed'
|
||||
log_event_sync(update, event_producer.name, 'Failed', frappe.get_traceback())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue