Loading src/common/tools/client/RestApiClient.py +2 −2 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class RestApiClient: str(method.value).upper(), str(request_url), str(body), str(http_status_code), str(reply.text) ) self._logger.error(msg) if self._logger is not None: self._logger.error(msg) raise Exception(msg) Loading @@ -124,7 +124,7 @@ class RestApiClient: except Exception as e: MSG = 'Request failed. method={:s} url={:s} body={:s}' msg = MSG.format(str(method.value).upper(), request_url, str(body)) self._logger.exception(msg) if self._logger is not None: self._logger.exception(msg) raise Exception(msg) from e self._log_msg_check_reply(method, request_url, body, reply, expected_status_codes) Loading Loading
src/common/tools/client/RestApiClient.py +2 −2 Original line number Diff line number Diff line Loading @@ -97,7 +97,7 @@ class RestApiClient: str(method.value).upper(), str(request_url), str(body), str(http_status_code), str(reply.text) ) self._logger.error(msg) if self._logger is not None: self._logger.error(msg) raise Exception(msg) Loading @@ -124,7 +124,7 @@ class RestApiClient: except Exception as e: MSG = 'Request failed. method={:s} url={:s} body={:s}' msg = MSG.format(str(method.value).upper(), request_url, str(body)) self._logger.exception(msg) if self._logger is not None: self._logger.exception(msg) raise Exception(msg) from e self._log_msg_check_reply(method, request_url, body, reply, expected_status_codes) Loading