Skip to content

Commit

Permalink
Update proc_main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom committed Sep 3, 2024
1 parent 66fbd41 commit 7eb2bd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions livekit-agents/livekit/agents/ipc/proc_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7eb2bd2

Please sign in to comment.