webapi client: remove body from log output
This commit is contained in:
parent
175f68f40a
commit
f50d2befa5
1 changed files with 2 additions and 2 deletions
|
|
@ -25,8 +25,8 @@ def sendJson(url, payload, cred, method):
|
||||||
else:
|
else:
|
||||||
resp = requests.request(
|
resp = requests.request(
|
||||||
method, url, json=payload, auth=cred, timeout=10)
|
method, url, json=payload, auth=cred, timeout=10)
|
||||||
logger.info('sendJson: %s %s -> %s %s.' % (
|
logger.info('sendJson: %s %s -> %s.' % (
|
||||||
method, url, resp.status_code, resp.text))
|
method, url, resp.status_code))
|
||||||
# TODO: check resp.status_code
|
# TODO: check resp.status_code
|
||||||
#return resp.json(), dict(state='success')
|
#return resp.json(), dict(state='success')
|
||||||
return resp.content
|
return resp.content
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue