Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 04ef03f

Browse files
committed
no changes, but documented how to lower level http debugging
1 parent d2d2f63 commit 04ef03f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CloudFlare/logging_helper.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
""" Logging for Cloudflare API"""
22
import logging
33

4+
# try:
5+
# import http.client as http_client
6+
# except ImportError:
7+
# # Python 2
8+
# import httplib as http_client
9+
410
DEBUG = 0
511
INFO = 1
612

@@ -33,6 +39,8 @@ def getLogger(self):
3339
# add ch to logger
3440
logger.addHandler(ch)
3541

42+
# http_client.HTTPConnection.debuglevel = 1
43+
3644
return logger
3745

3846
def _get_logging_level(self, level):

0 commit comments

Comments
 (0)