Commit 69834496 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Common tools:

- Corrected logger utilization in RestApiClient
parent 626c0dc9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)


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