webapi client: remove body from log output

This commit is contained in:
Helmut Merz 2025-11-17 10:09:18 +01:00
parent 175f68f40a
commit f50d2befa5

View file

@ -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