From ce7ad2aa0648c09380e6c88223e479dd4ad1d0e7 Mon Sep 17 00:00:00 2001 From: Giovanni Condello Date: Sun, 5 May 2024 09:54:38 +0200 Subject: [PATCH] Version 0.2.2 --- pyproject.toml | 2 +- src/saic_ismart_client_ng/net/client/__init__.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9fb1476..ca780ba 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "saic_ismart_client_ng" -version = "0.2.1" +version = "0.2.2" authors = [ { name = "Giovanni Condello", email = "saic-python-client@nanomad.net" }, ] diff --git a/src/saic_ismart_client_ng/net/client/__init__.py b/src/saic_ismart_client_ng/net/client/__init__.py index 4dd5d5e..7812f9f 100644 --- a/src/saic_ismart_client_ng/net/client/__init__.py +++ b/src/saic_ismart_client_ng/net/client/__init__.py @@ -32,7 +32,7 @@ async def invoke_request_listener(self, request: httpx.Request): body = request.content.decode("utf-8") except Exception as e: - self.__logger.warning(f"Error decoding request content: {e}") + self.__logger.warning(f"Error decoding request content: {e}", exc_info=e) await self.__listener.on_request( path=str(request.url).replace(self.configuration.base_uri, "/"), @@ -40,7 +40,7 @@ async def invoke_request_listener(self, request: httpx.Request): headers=dict(request.headers), ) except Exception as e: - self.__logger.warning(f"Error invoking request listener: {e}") + self.__logger.warning(f"Error invoking request listener: {e}", exc_info=e) async def invoke_response_listener(self, response: httpx.Response): if not self.__listener: @@ -51,7 +51,7 @@ async def invoke_response_listener(self, response: httpx.Response): try: body = body.decode("utf-8") except Exception as e: - self.__logger.warning(f"Error decoding request content: {e}") + self.__logger.warning(f"Error decoding request content: {e}", exc_info=e) await self.__listener.on_response( path=str(response.url).replace(self.configuration.base_uri, "/"), @@ -59,4 +59,4 @@ async def invoke_response_listener(self, response: httpx.Response): headers=dict(response.headers), ) except Exception as e: - self.__logger.warning(f"Error invoking request listener: {e}") + self.__logger.warning(f"Error invoking request listener: {e}", exc_info=e)