Skip to content

Commit

Permalink
Update log to DEBUG
Browse files Browse the repository at this point in the history
Disable sync and observer threads in test Connector instance
  • Loading branch information
NeonDaniel committed Jan 21, 2025
1 parent 079094b commit fe04091
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion neon_mq_connector/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def _on_channel_open(new_channel):
new_channel.close()

if isinstance(connection, pika.BlockingConnection):
LOG.info(f"Using blocking connection for request: {request_data}")
LOG.debug(f"Using blocking connection for request: {request_data}")
_on_channel_open(connection.channel())
else:
LOG.debug(f"Using select connection for queue: {queue}")
Expand Down
2 changes: 1 addition & 1 deletion tests/test_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ def test_emit_mq_message(self):
callback = Mock(side_effect=lambda *args: callback_event.set())
connector.register_consumer("test_consumer", vhost=test_vhost,
queue=test_queue, callback=callback)
connector.run()
connector.run(run_sync=False, run_observer=False)

close_event = threading.Event()
on_open = Mock()
Expand Down

0 comments on commit fe04091

Please sign in to comment.