Skip to content

ws_protocol: Log when WebSocket is killed by Daphne#474

Open
oliviermartin wants to merge 2 commits into
django:mainfrom
oliviermartin:log-daphne-timeout
Open

ws_protocol: Log when WebSocket is killed by Daphne#474
oliviermartin wants to merge 2 commits into
django:mainfrom
oliviermartin:log-daphne-timeout

Conversation

@oliviermartin
Copy link
Copy Markdown

@oliviermartin oliviermartin commented May 4, 2023

Similar logs already exist in the rest of the application. It would help to trace some unexplained websocket disconnection.

Comment thread daphne/ws_protocol.py
self.duration() > self.server.websocket_timeout
and self.server.websocket_timeout >= 0
):
logger.warning(
Copy link
Copy Markdown
Member

@carltongibson carltongibson May 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should probably use debug. (Both cases)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please how can I use this app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants