From 430b6826bfcd4c736095c7e4ccfc5fc2e9e4a0c0 Mon Sep 17 00:00:00 2001 From: Jim Ladd Date: Fri, 15 Oct 2021 16:46:15 -0700 Subject: [PATCH] update exception log message to be descriptive .. instead of surfacing exception --- awx/main/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index e2468cd8f1..6a083f69e2 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -3129,7 +3129,7 @@ class AWXReceptorJob: except RuntimeError as e: detail = '' state_name = '' - logger.exception(e) + logger.exception(f'Unable to retrieve work status for {self.unit_id}') if 'exceeded quota' in detail: logger.warn(detail)