avoid debug-level logging of curl_httpclient
it includes the entirety of every request and reply, including headers
@@ -341,6 +341,12 @@ class BinderHub(Application):
AsyncHTTPClient.configure("tornado.curl_httpclient.CurlAsyncHTTPClient")
except ImportError as e:
self.log.debug("Could not load pycurl: %s\npycurl is recommended if you have a large number of users.", e)
+ # set max verbosity of curl_httpclient at INFO
+ # because debug-logging from curl_httpclient
+ # includes every full request and response
+ if self.log_level < logging.INFO:
+ curl_log = logging.getLogger('tornado.curl_httpclient')
+ curl_log.setLevel(logging.INFO)
def initialize(self, *args, **kwargs):
"""Load configuration settings."""
