Skip to content

Commit

Permalink
logging state of connection and channel
Browse files Browse the repository at this point in the history
  • Loading branch information
rabellino-noaa committed Jul 2, 2024
1 parent 8b0d4d6 commit ae0e9a4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/idsse_common/idsse/common/publish_confirm.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,12 @@ def _wait_for_channel_to_be_ready(self) -> None:
RabbitMQ setup. This method will not return until channel is confirmed ready for use"""

# validate that PublishConfirm thread has been set up and connected to RabbitMQ
logger.info('DEBUG _wait_for_channel_to_be_ready state')
logger.info(self._connection)
logger.info(self._connection.is_open)
logger.info(self._channel)
logger.info(self._channel.is_open)
logger.info('----------------------')
if not (self._connection and self._connection.is_open
and self._channel and self._channel.is_open):
logger.info('Channel is not ready to publish, calling _start() now')
Expand Down

0 comments on commit ae0e9a4

Please sign in to comment.