From e09395d4f9ced8b1b373564a84a8a11d51925196 Mon Sep 17 00:00:00 2001 From: Alexander Presnyakov Date: Tue, 4 Nov 2025 12:53:10 +0000 Subject: [PATCH] MCOL-4905: log exact status code --- cmapi/cmapi_server/helpers.py | 2 +- cmapi/mcs_cluster_tool/cmapi_app.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmapi/cmapi_server/helpers.py b/cmapi/cmapi_server/helpers.py index 2e66b41e4..1259b0387 100644 --- a/cmapi/cmapi_server/helpers.py +++ b/cmapi/cmapi_server/helpers.py @@ -188,7 +188,7 @@ def start_transaction( # conditions where that is the desired behavior here. if int(r.status_code / 100) == 4: logging.debug( - 'Got a 4xx error while beginning transaction ' + 'Got a {r.status_code} error while beginning transaction ' f'with response text {r.text}' ) break # TODO: useless, got break in finally statement diff --git a/cmapi/mcs_cluster_tool/cmapi_app.py b/cmapi/mcs_cluster_tool/cmapi_app.py index b06beaddb..d6dbd01ad 100644 --- a/cmapi/mcs_cluster_tool/cmapi_app.py +++ b/cmapi/mcs_cluster_tool/cmapi_app.py @@ -77,6 +77,7 @@ def set( url = build_url( base_url='localhost', port=8640, path=f'cmapi/{version}/cmapi_config', + query_params={}, ) headers = {'x-api-key': api_key} body = {}