Skip to content

Commit

Permalink
Put in small logging tweak (bcgov#1576)
Browse files Browse the repository at this point in the history
  • Loading branch information
seeker25 authored Jun 19, 2024
1 parent 76b0987 commit 0122ce4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pay-queue/src/pay_queue/resources/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def worker():
raise Exception('Invalid queue message type') # pylint: disable=broad-exception-raised

return {}, HTTPStatus.OK
except Exception: # pylint: disable=broad-exception-caught
current_app.logger.error('Failed to process queue message: %s', HTTPStatus.INTERNAL_SERVER_ERROR)
# Optionally, return an error status code or message
except Exception: # NOQA # pylint: disable=broad-except
# Catch Exception so that any error is still caught and the message is removed from the queue
current_app.logger.error('Error processing event:', exc_info=True)
return {}, HTTPStatus.OK

0 comments on commit 0122ce4

Please sign in to comment.