Debug output the http body
Output the kwargs[data] instead of kwargs[body] which was deleted. Change-Id: I233e37cceb7079ec78b9bde093967dea9ad94441 Fixes: bug #1155655
This commit is contained in:
parent
458ff24513
commit
f2ac10f282
@ -93,8 +93,8 @@ class HTTPClient(object):
|
||||
header = ' -H "%s: %s"' % (element, kwargs['headers'][element])
|
||||
string_parts.append(header)
|
||||
|
||||
if 'body' in kwargs:
|
||||
string_parts.append(" -d '%s'" % (kwargs['body']))
|
||||
if 'data' in kwargs:
|
||||
string_parts.append(" -d '%s'" % (kwargs['data']))
|
||||
self._logger.debug("\nREQ: %s\n" % "".join(string_parts))
|
||||
|
||||
def http_log_resp(self, resp):
|
||||
|
Loading…
x
Reference in New Issue
Block a user