From d630091cc8da59d3ab19aacad80b60ed78433e4e Mon Sep 17 00:00:00 2001 From: Daniel McKnight <34697904+NeonDaniel@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:03:49 -0800 Subject: [PATCH] Reduce message emit log to `DEBUG` (#93) * Reduce message emit log to `DEBUG` * Remove leftover unused `logging` import --------- Co-authored-by: Daniel McKnight --- neon_mq_connector/connector.py | 2 +- neon_mq_connector/utils/client_utils.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/neon_mq_connector/connector.py b/neon_mq_connector/connector.py index 6886438..b16da48 100644 --- a/neon_mq_connector/connector.py +++ b/neon_mq_connector/connector.py @@ -461,7 +461,7 @@ def send_message(self, exchange=exchange, exchange_type=exchange_type, expiration=expiration) - LOG.info(f'Message propagated, id={msg_id}') + LOG.debug(f'Message propagated, id={msg_id}') return msg_id @retry(use_self=True, num_retries=__run_retries__) diff --git a/neon_mq_connector/utils/client_utils.py b/neon_mq_connector/utils/client_utils.py index c8f678f..8768326 100644 --- a/neon_mq_connector/utils/client_utils.py +++ b/neon_mq_connector/utils/client_utils.py @@ -26,7 +26,6 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -import logging import uuid from threading import Event