From 04ef03f0508515b82e3104e186e8d2eff7c93240 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Wed, 14 Feb 2018 17:16:25 -0800 Subject: [PATCH] no changes, but documented how to lower level http debugging --- CloudFlare/logging_helper.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/CloudFlare/logging_helper.py b/CloudFlare/logging_helper.py index 97b8db6..a7fd9d6 100644 --- a/CloudFlare/logging_helper.py +++ b/CloudFlare/logging_helper.py @@ -1,6 +1,12 @@ """ Logging for Cloudflare API""" import logging +# try: +# import http.client as http_client +# except ImportError: +# # Python 2 +# import httplib as http_client + DEBUG = 0 INFO = 1 @@ -33,6 +39,8 @@ def getLogger(self): # add ch to logger logger.addHandler(ch) + # http_client.HTTPConnection.debuglevel = 1 + return logger def _get_logging_level(self, level):