mirror of
https://github.com/ansible/awx.git
synced 2026-02-23 22:16:00 -03:30
log task failures when DEBUG = True
this helps a lot for development - otherwise you have to go look an explanaton in the database for these sorts of failures
This commit is contained in:
@@ -769,6 +769,8 @@ class BaseTask(Task):
|
|||||||
except Exception:
|
except Exception:
|
||||||
if status != 'canceled':
|
if status != 'canceled':
|
||||||
tb = traceback.format_exc()
|
tb = traceback.format_exc()
|
||||||
|
if settings.DEBUG:
|
||||||
|
logger.exception('exception occurred while running task')
|
||||||
finally:
|
finally:
|
||||||
if kwargs.get('private_data_dir', ''):
|
if kwargs.get('private_data_dir', ''):
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user