Add more logging
This commit is contained in:
parent
f3467bca36
commit
0f26b6cc8a
|
@ -903,6 +903,7 @@ class _Request:
|
||||||
for name in self.params.keys():
|
for name in self.params.keys():
|
||||||
data.append("=".join((name, quote_plus(_string(self.params[name])))))
|
data.append("=".join((name, quote_plus(_string(self.params[name])))))
|
||||||
data = "&".join(data)
|
data = "&".join(data)
|
||||||
|
logger.debug(data)
|
||||||
|
|
||||||
if "api_sig" in self.params.keys():
|
if "api_sig" in self.params.keys():
|
||||||
method = "POST"
|
method = "POST"
|
||||||
|
@ -910,6 +911,7 @@ class _Request:
|
||||||
else:
|
else:
|
||||||
method = "GET"
|
method = "GET"
|
||||||
url_parameters = "?" + data
|
url_parameters = "?" + data
|
||||||
|
logger.debug(method)
|
||||||
|
|
||||||
headers = {
|
headers = {
|
||||||
"Content-type": "application/x-www-form-urlencoded",
|
"Content-type": "application/x-www-form-urlencoded",
|
||||||
|
@ -966,6 +968,7 @@ class _Request:
|
||||||
self._check_response_for_errors(response_text)
|
self._check_response_for_errors(response_text)
|
||||||
finally:
|
finally:
|
||||||
conn.close()
|
conn.close()
|
||||||
|
logger.debug(response_text)
|
||||||
return response_text
|
return response_text
|
||||||
|
|
||||||
def execute(self, cacheable=False):
|
def execute(self, cacheable=False):
|
||||||
|
|
Loading…
Reference in a new issue