From 7eb2bd22a6d07f98d6e4fb53f4a46a3f72b5f883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 3 Sep 2024 15:30:19 -0700 Subject: [PATCH] Update proc_main.py --- livekit-agents/livekit/agents/ipc/proc_main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/livekit-agents/livekit/agents/ipc/proc_main.py b/livekit-agents/livekit/agents/ipc/proc_main.py index df694bd0d..6d8ead956 100644 --- a/livekit-agents/livekit/agents/ipc/proc_main.py +++ b/livekit-agents/livekit/agents/ipc/proc_main.py @@ -57,6 +57,8 @@ def emit(self, record: logging.LogRecord) -> None: record.exc_text = None record.stack_info = None + # https://websockets.readthedocs.io/en/stable/topics/logging.html#logging-to-json + # webosckets library add "websocket" attribute to log records, which is not pickleable if hasattr(record, "websocket"): record.websocket = None