Skip to content

Commit

Permalink
Stacktrace added to error messages in task manager
Browse files Browse the repository at this point in the history
  • Loading branch information
zzzevaka committed Oct 3, 2023
1 parent eae8e18 commit cb41d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect_ext_ppr/tasks_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ def execute_tasks(db, config, tasks, connect_client, logger):
was_succesfull = False
task.error_message = str(ex)[:4000]
except Exception as ex:
logger.error(f'Task ID: {task.id} - {ex}')
logger.exception(f'Task ID: {task.id} - {ex}')
was_succesfull = False
task.error_message = 'Something went wrong.'

Expand Down Expand Up @@ -466,7 +466,7 @@ def main_process(deployment_request_id, config, connect_client, logger):
was_succesfull = execute_tasks(db, config, tasks, connect_client, logger)
except Exception as ex:
was_succesfull = False
logger.error(f'DeploymentRequest ID: {deployment_request_id} - {ex}')
logger.exception(f'DeploymentRequest ID: {deployment_request_id} - {ex}')

db.refresh(deployment_request, with_for_update=True)

Expand Down

0 comments on commit cb41d50

Please sign in to comment.