From 63b019783dbadb34c719a48764ad4f4269e9fc1c Mon Sep 17 00:00:00 2001 From: botbikamordehai2-sketch Date: Thu, 28 May 2026 07:40:45 +0000 Subject: [PATCH] fix: suppress urllib3 debug logging by default (closes #144) --- krakenex/api.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/krakenex/api.py b/krakenex/api.py index b1575fb..bd1a093 100644 --- a/krakenex/api.py +++ b/krakenex/api.py @@ -67,6 +67,10 @@ def __init__(self, key='', secret=''): }) self.response = None self._json_options = {} + # Suppress debug-level logging from the requests/urllib3 library, + # which would otherwise clutter the caller's logs. + import logging + logging.getLogger('urllib3').setLevel(logging.WARNING) return def json_options(self, **kwargs):