diff --git a/griffon/__init__.py b/griffon/__init__.py index fff385a..476834e 100644 --- a/griffon/__init__.py +++ b/griffon/__init__.py @@ -51,11 +51,8 @@ def config_logging(level="INFO"): # if set to 'DEBUG' then we want all the http conversation if level == "DEBUG": - try: - import http.client as http_client - except ImportError: - # Python 2 - import httplib as http_client + import http.client as http_client + http_client.HTTPConnection.debuglevel = 1 message_format = "%(asctime)s %(name)s %(levelname)s %(message)s"