debug(node2): Add logging for agent status determination
This commit is contained in:
@@ -4638,6 +4638,10 @@ async def get_dagi_router_agents(node_id: str):
|
||||
else:
|
||||
status = "stale" # Router down
|
||||
|
||||
# Debug logging for first agent
|
||||
if len(result_agents) == 0:
|
||||
logger.info(f"[{node_id}] Agent {agent_id}: router_healthy={router_healthy}, agent_status={agent_status}, final_status={status}")
|
||||
|
||||
result_agents.append({
|
||||
"id": agent_id,
|
||||
"name": db_agent.get("display_name") or db_agent.get("name"),
|
||||
|
||||
Reference in New Issue
Block a user