chore: Update disconnecting log message

websocket disconnection could happen in both sending/receiving text, update the log message to make it less confusing.

Co-authored-by: Xiang (Sean) Zhou <seanzhougoogle@google.com>
PiperOrigin-RevId: 852410439
This commit is contained in:
Xiang (Sean) Zhou
2026-01-05 12:30:15 -08:00
committed by Copybara-Service
parent 838530ebe0
commit e850e9c9ba
+2 -1
View File
@@ -1657,7 +1657,8 @@ class AdkWebServer:
for task in done:
task.result()
except WebSocketDisconnect:
logger.info("Client disconnected during process_messages.")
# Disconnection could happen when receive or send text via websocket
logger.info("Client disconnected during live session.")
except Exception as e:
logger.exception("Error during live websocket communication: %s", e)
traceback.print_exc()