From f50d2befa5f1642a12b8f15f30bc7460a4bc6ced Mon Sep 17 00:00:00 2001 From: Helmut Merz Date: Mon, 17 Nov 2025 10:09:18 +0100 Subject: [PATCH] webapi client: remove body from log output --- cco/webapi/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cco/webapi/client.py b/cco/webapi/client.py index 997c8a2..aa57467 100644 --- a/cco/webapi/client.py +++ b/cco/webapi/client.py @@ -25,8 +25,8 @@ def sendJson(url, payload, cred, method): else: resp = requests.request( method, url, json=payload, auth=cred, timeout=10) - logger.info('sendJson: %s %s -> %s %s.' % ( - method, url, resp.status_code, resp.text)) + logger.info('sendJson: %s %s -> %s.' % ( + method, url, resp.status_code)) # TODO: check resp.status_code #return resp.json(), dict(state='success') return resp.content