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: