Skip to content

Commit

Permalink
no changes, but documented how to lower level http debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Feb 15, 2018
1 parent d2d2f63 commit 04ef03f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CloudFlare/logging_helper.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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):
Expand Down

0 comments on commit 04ef03f

Please sign in to comment.