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):