WebSocket连接断开隐藏调用栈

This commit is contained in:
zhbaor 2025-01-17 13:20:55 +08:00
parent 9506d7a977
commit 672168cb20

View file

@ -96,9 +96,7 @@ def log(ws):
ws.receive()
except Exception:
config.ws_connections.remove(ws)
logger.debug_exception(
f"WebSocket客户端断开连接,共{len(config.ws_connections)}条连接"
)
logger.debug(f"WebSocket客户端断开连接,共{len(config.ws_connections)}条连接")
def post_require_token(f):