mirror of
https://github.com/ansible/awx.git
synced 2024-11-02 09:51:09 +03:00
always log uncaught task exceptions
This commit is contained in:
parent
c936fd7035
commit
0a23195a7b
@ -1000,9 +1000,9 @@ class BaseTask(Task):
|
||||
)
|
||||
|
||||
except Exception:
|
||||
if status != 'canceled':
|
||||
# run_pexpect does not throw exceptions for cancel or timeout
|
||||
# this could catch programming or file system errors
|
||||
tb = traceback.format_exc()
|
||||
if settings.DEBUG:
|
||||
logger.exception('%s Exception occurred while running task', instance.log_format)
|
||||
finally:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user