Merge "When logging request include request data"
This commit is contained in:
commit
38fb9743e0
@ -141,8 +141,8 @@ class HTTPClient(object):
|
|||||||
header = ' -H "%s: %s"' % (element, kwargs['headers'][element])
|
header = ' -H "%s: %s"' % (element, kwargs['headers'][element])
|
||||||
string_parts.append(header)
|
string_parts.append(header)
|
||||||
|
|
||||||
if 'body' in kwargs:
|
if 'data' in kwargs:
|
||||||
string_parts.append(" -d '%s'" % (kwargs['body']))
|
string_parts.append(" -d '%s'" % (kwargs['data']))
|
||||||
self._logger.debug("\nREQ: %s\n" % "".join(string_parts))
|
self._logger.debug("\nREQ: %s\n" % "".join(string_parts))
|
||||||
|
|
||||||
def http_log_resp(self, resp):
|
def http_log_resp(self, resp):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user