Skip to content

Commit

Permalink
add is_alive log message
Browse files Browse the repository at this point in the history
  • Loading branch information
cenkalti committed Dec 5, 2023
1 parent 5fc9add commit 8f299d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kuyruk/connection.py
Expand Up @@ -87,6 +87,7 @@ def _get(self) -> amqp.Connection:
self._connection = self.new_connection()

if not self._is_alive:
logger.error("RabbitMQ connection is not alive. New connection will be opened.")
self._remove_connection(suppress_exceptions=True)
self._connection = self.new_connection()

Expand Down

0 comments on commit 8f299d5

Please sign in to comment.