Skip to content

Commit

Permalink
Revert "Don't log first failed rmq connectiona attempt"
Browse files Browse the repository at this point in the history
This reverts commit 2946dc7.
  • Loading branch information
stchris committed May 24, 2024
1 parent 614a28e commit 71812e1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions servicelayer/taskqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -588,14 +588,10 @@ def get_rabbitmq_connection():
AssertionError,
ConnectionResetError,
):
log.error(
log.exception(
f"Failed to establish RabbitMQ connection."
f"Attempt: {attempt}/{service_retries().stop}"
)
# Don't raise this exception on the first attempt. Occasionally connections
# get dropped and re-established and that is not something we care to know.
if attempt > 0:
raise
local.connection = None

backoff(failures=attempt)
Expand Down

0 comments on commit 71812e1

Please sign in to comment.