mirror of
https://github.com/ZwareBear/awx.git
synced 2026-03-20 15:53:36 -05:00
Merge pull request #7047 from ryanpetrello/debug-tasks
log task failures when DEBUG = True
This commit is contained in:
@@ -769,6 +769,8 @@ class BaseTask(Task):
|
||||
except Exception:
|
||||
if status != 'canceled':
|
||||
tb = traceback.format_exc()
|
||||
if settings.DEBUG:
|
||||
logger.exception('exception occurred while running task')
|
||||
finally:
|
||||
if kwargs.get('private_data_dir', ''):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user