From dfa36b62947c37f25d866a741ff40f7a68c87453 Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sat, 20 Apr 2024 17:36:35 +0200 Subject: [PATCH] Fix logging --- app/util/websocket_wrapper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/util/websocket_wrapper.py b/app/util/websocket_wrapper.py index 12eacee..9b11d25 100644 --- a/app/util/websocket_wrapper.py +++ b/app/util/websocket_wrapper.py @@ -12,13 +12,13 @@ class WebSocketWrapper(): async def recv(self) -> str: try: text = await self._websocket.receive_text() - logger.info("Message received: {}", text) + logger.info("Message received: %s", text) return text except WebSocketDisconnect as e: raise ConnectionClosed(e.code, 'WebSocketWrapper') async def send(self, msg: str) -> None: - logger.info("Message sent: {}", msg) + logger.info("Message sent: %s", msg) await self._websocket.send_text(msg) async def close(self, code: int, reason: str) -> None: