debug(minor): print trace for failed events in tests

This commit is contained in:
Rushabh Mehta 2020-08-14 08:45:01 +05:30
parent 049f04a452
commit df8075bd1d

View file

@ -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())