diff --git a/src/dashboard/app.py b/src/dashboard/app.py index 262aa8b..db7e115 100644 --- a/src/dashboard/app.py +++ b/src/dashboard/app.py @@ -442,7 +442,7 @@ async def lifespan(app: FastAPI): register_error_recorder(get_session_logger().record_error) except Exception: - pass + logger.debug("Failed to register error recorder") logger.info("✓ Dashboard ready for requests") diff --git a/src/dashboard/routes/agents.py b/src/dashboard/routes/agents.py index ac2e00b..6c9ebfb 100644 --- a/src/dashboard/routes/agents.py +++ b/src/dashboard/routes/agents.py @@ -91,7 +91,7 @@ async def chat_agent(request: Request, message: str = Form(...)): thinking_engine.record_user_input() except Exception: - pass + logger.debug("Failed to record user input for thinking engine") timestamp = datetime.now().strftime("%H:%M:%S") response_text = None diff --git a/src/dashboard/routes/chat_api.py b/src/dashboard/routes/chat_api.py index b77fbeb..604394f 100644 --- a/src/dashboard/routes/chat_api.py +++ b/src/dashboard/routes/chat_api.py @@ -85,7 +85,7 @@ async def api_chat(request: Request): thinking_engine.record_user_input() except Exception: - pass + logger.debug("Failed to record user input for thinking engine") timestamp = datetime.now().strftime("%H:%M:%S") diff --git a/src/dashboard/routes/system.py b/src/dashboard/routes/system.py index 9beb3dc..af638b7 100644 --- a/src/dashboard/routes/system.py +++ b/src/dashboard/routes/system.py @@ -166,7 +166,7 @@ async def api_briefing_status(): if cached: last_generated = cached.generated_at.isoformat() except Exception: - pass + logger.debug("Failed to read briefing cache") return JSONResponse( { @@ -190,6 +190,7 @@ async def api_memory_status(): stats = get_memory_stats() indexed_files = stats.get("total_entries", 0) except Exception: + logger.debug("Failed to get memory stats") indexed_files = 0 return JSONResponse( @@ -215,7 +216,7 @@ async def api_swarm_status(): ).fetchone() pending_tasks = row["cnt"] if row else 0 except Exception: - pass + logger.debug("Failed to count pending tasks") return JSONResponse( { diff --git a/src/dashboard/routes/world.py b/src/dashboard/routes/world.py index a316e92..528b472 100644 --- a/src/dashboard/routes/world.py +++ b/src/dashboard/routes/world.py @@ -221,7 +221,7 @@ async def _heartbeat(websocket: WebSocket) -> None: await asyncio.sleep(_HEARTBEAT_INTERVAL) await websocket.send_text(json.dumps({"type": "ping"})) except Exception: - pass # connection gone — receive loop will clean up + logger.debug("Heartbeat stopped — connection gone") @router.websocket("/ws") @@ -250,7 +250,7 @@ async def world_ws(websocket: WebSocket) -> None: raw = await websocket.receive_text() await _handle_client_message(raw) except Exception: - pass + logger.debug("WebSocket receive loop ended") finally: ping_task.cancel() if websocket in _ws_clients: @@ -265,6 +265,7 @@ async def _broadcast(message: str) -> None: try: await ws.send_text(message) except Exception: + logger.debug("Pruning dead WebSocket client") dead.append(ws) for ws in dead: if ws in _ws_clients: @@ -340,7 +341,7 @@ async def _bark_and_broadcast(visitor_text: str) -> None: pip_familiar.on_event("visitor_spoke") except Exception: - pass # Pip is optional + logger.debug("Pip familiar notification failed (optional)") _refresh_ground(visitor_text) _tick_commitments() diff --git a/src/timmy/memory_system.py b/src/timmy/memory_system.py index 5b809b7..59caef1 100644 --- a/src/timmy/memory_system.py +++ b/src/timmy/memory_system.py @@ -636,7 +636,7 @@ class HotMemory: if len(lines) > 1: return "\n".join(lines) except Exception: - pass + logger.debug("DB context read failed, falling back to file") # Fallback to file if DB unavailable if self.path.exists():