From aa255c93b5f861881fb755d07fe848fd3b6ecbce Mon Sep 17 00:00:00 2001 From: Travis Semple Date: Wed, 26 Jun 2024 11:54:24 -0700 Subject: [PATCH] Add in small logging instead of throwing exception (#1586) --- .gitignore | 1 + pay-queue/src/pay_queue/resources/worker.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index ba3b879e1..a4089291d 100644 --- a/.gitignore +++ b/.gitignore @@ -132,3 +132,4 @@ jobs/notebook-report/data/ test_eft_tdi17.txt ACK.INBOX* FEEDBACK.INBOX* +*.env diff --git a/pay-queue/src/pay_queue/resources/worker.py b/pay-queue/src/pay_queue/resources/worker.py index 37dfc277c..906936b68 100644 --- a/pay-queue/src/pay_queue/resources/worker.py +++ b/pay-queue/src/pay_queue/resources/worker.py @@ -52,7 +52,7 @@ def worker(): elif ce.type in [QueueMessageTypes.INCORPORATION.value, QueueMessageTypes.REGISTRATION.value]: update_temporary_identifier(ce.data) else: - raise Exception('Invalid queue message type') # pylint: disable=broad-exception-raised + current_app.logger.warning('Invalid queue message type: %s', ce.type) return {}, HTTPStatus.OK except Exception: # NOQA # pylint: disable=broad-except