fix: suppress noisy WS keepalive timeout tracebacks
This commit is contained in:
@@ -96,8 +96,8 @@ async def websocket_endpoint(ws: WebSocket):
|
|||||||
await ws.send_json({"type": "pong"})
|
await ws.send_json({"type": "pong"})
|
||||||
except WebSocketDisconnect:
|
except WebSocketDisconnect:
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.error("WS error: %s", e)
|
pass
|
||||||
finally:
|
finally:
|
||||||
ws_manager.disconnect(cid)
|
ws_manager.disconnect(cid)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user