Skip to content

Commit

Permalink
Merge pull request #140 from uktrade/remove-healthy-queue-sentry-alerts
Browse files Browse the repository at this point in the history
Update queue status sentry logging.
  • Loading branch information
saruniitr authored May 30, 2022
2 parents 20da9a4 + 536e831 commit 6a91012
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mail/libraries/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,4 +405,5 @@ def publish_queue_status():
if "usage_data" in queue_status:
extra_state = {**extra_state, **queue_status["usage_data"]}

log_to_sentry(f"Mail queue status: {queue_state} (see additional data below)", extra=extra_state)
if queue_status != "HEALTHY":
log_to_sentry(f"Mail queue status: {queue_state} (see additional data below)", extra=extra_state)

0 comments on commit 6a91012

Please sign in to comment.