Add debug logging to model_fallback callback in handlers.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5735b9cbe6
commit
05e1628086
1 changed files with 3 additions and 0 deletions
|
|
@ -142,8 +142,11 @@ async def handle_analyze_message(
|
|||
if fallback_notified:
|
||||
return
|
||||
fallback_notified = True
|
||||
logger.info(f"[WEBSOCKET] Sending model_fallback notification to client: {client_id}")
|
||||
if manager.is_connected(client_id):
|
||||
await manager.send_message(client_id, {"type": "model_fallback"})
|
||||
else:
|
||||
logger.warning(f"[WEBSOCKET] Cannot send model_fallback - client {client_id} not connected")
|
||||
|
||||
# Run the analysis
|
||||
logger.info("[WEBSOCKET] Starting analysis...")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue