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