Skip to content

Commit

Permalink
Log RabbitMQ connection re-establishing on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
catileptic committed Jan 23, 2024
1 parent bf18c3f commit 52ff299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servicelayer/taskqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ def get_rabbitmq_connection():
or not local.connection
or not local.connection.is_open
):
log.critical("Establishing connection to RabbitMQ server")
log.debug("Establishing connection to RabbitMQ server")
credentials = pika.PlainCredentials(
settings.RABBITMQ_USERNAME, settings.RABBITMQ_PASSWORD
)
Expand All @@ -470,7 +470,7 @@ def get_rabbitmq_connection():
local.connection = connection

if local.connection and local.connection.is_open:
log.critical("Defining RabbitMQ queues on an open connection")
log.debug("Defining RabbitMQ queues on an open connection")
channel = local.connection.channel()

channel.queue_declare(
Expand Down

0 comments on commit 52ff299

Please sign in to comment.