diff --git a/deadlock_data_api/logging_middleware.py b/deadlock_data_api/logging_middleware.py index 84a7243..2142d99 100644 --- a/deadlock_data_api/logging_middleware.py +++ b/deadlock_data_api/logging_middleware.py @@ -1,3 +1,4 @@ +import json import logging import time from collections.abc import Callable @@ -27,7 +28,7 @@ async def dispatch(self, req: Request, call_next: Callable) -> Response: self._logger.exception(e) raise - self._logger.info(logging_dict) + self._logger.info(json.dumps(logging_dict)) return res async def _log_request(self, req: Request) -> dict[str, Any]: