From 9af132933c9ed1418ecd3b8056660f767a160fb5 Mon Sep 17 00:00:00 2001 From: Engel Nyst Date: Mon, 12 May 2025 02:50:36 +0200 Subject: [PATCH] Fix log for clearing pending action to be at the same level (#8430) --- openhands/controller/agent_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openhands/controller/agent_controller.py b/openhands/controller/agent_controller.py index a1a7bd7cfe..9948b70f4c 100644 --- a/openhands/controller/agent_controller.py +++ b/openhands/controller/agent_controller.py @@ -772,7 +772,7 @@ class AgentController: """Executes a single step of the parent or delegate agent. Detects stuck agents and limits on the number of iterations and the task budget.""" if self.get_agent_state() != AgentState.RUNNING: self.log( - 'info', + 'debug', f'Agent not stepping because state is {self.get_agent_state()} (not RUNNING)', extra={'msg_type': 'STEP_BLOCKED_STATE'}, ) @@ -782,7 +782,7 @@ class AgentController: action_id = getattr(self._pending_action, 'id', 'unknown') action_type = type(self._pending_action).__name__ self.log( - 'info', + 'debug', f'Agent not stepping because of pending action: {action_type} (id={action_id})', extra={'msg_type': 'STEP_BLOCKED_PENDING_ACTION'}, )