Reduce log noise: downgrade periodic WebSocket rotation from ERROR to INFO

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-03 14:03:20 +08:00
parent c7b8b01fe2
commit b735b72112
+3
View File
@@ -93,6 +93,9 @@ async def connect_and_serve():
while True: while True:
try: try:
await _run_connection() await _run_connection()
except ConnectionError:
logger.info("Connection rotated by server, reconnecting...")
await asyncio.sleep(5)
except Exception: except Exception:
logger.exception("Connection lost, reconnecting in 5s...") logger.exception("Connection lost, reconnecting in 5s...")
await asyncio.sleep(5) await asyncio.sleep(5)