@@ -130,26 +130,26 @@ def perform_query(self, method, path, data = {}, headers = None):
130130 raise requests .exceptions .HTTPError (message , response = e .response )
131131 return resp .json ()
132132
133- @classmethod
134- def enable_debug_logging (cls ):
135- # These two lines enable debugging at httplib level (requests->urllib3->http.client)
136- # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
137- # The only thing missing will be the response.body which is not logged.
138- try :
139- import http .client as http_client
140- except ImportError :
141- # Python 2
142- import httplib as http_client
143-
144- print ("HTTP debugging enabled" )
145- http_client .HTTPConnection .debuglevel = 1
146-
147- # You must initialize logging, otherwise you'll not see debug output.
148- logging .basicConfig ()
149- logging .getLogger ().setLevel (logging .DEBUG )
150- requests_log = logging .getLogger ("requests.packages.urllib3" )
151- requests_log .setLevel (logging .DEBUG )
152- requests_log .propagate = True
133+ @classmethod
134+ def enable_debug_logging (cls ):
135+ # These two lines enable debugging at httplib level (requests->urllib3->http.client)
136+ # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
137+ # The only thing missing will be the response.body which is not logged.
138+ try :
139+ import http .client as http_client
140+ except ImportError :
141+ # Python 2
142+ import httplib as http_client
143+
144+ print ("HTTP debugging enabled" )
145+ http_client .HTTPConnection .debuglevel = 1
146+
147+ # You must initialize logging, otherwise you'll not see debug output.
148+ logging .basicConfig ()
149+ logging .getLogger ().setLevel (logging .DEBUG )
150+ requests_log = logging .getLogger ("requests.packages.urllib3" )
151+ requests_log .setLevel (logging .DEBUG )
152+ requests_log .propagate = True
153153
154154
155155def _translate_boolean_to_query_param (value ):
0 commit comments