Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Change log levels from info to debug for various agent controller messages (#8073)

Robert Brennana948b0fef358
diff --git a/openhands/controller/agent_controller.py b/openhands/controller/agent_controller.py
index 795aad1909..2461254ebb 100644
--- a/openhands/controller/agent_controller.py
+++ b/openhands/controller/agent_controller.py
@@ -414,7 +414,7 @@ class AgentController:
should_step = self.should_step(event)
if should_step:
self.log(
- 'info',
+ 'debug',
f'Stepping agent after event: {type(event).__name__}',
extra={'msg_type': 'STEPPING_AGENT'},
)
@@ -779,7 +779,7 @@ class AgentController:
return
self.log(
- 'info',
+ 'debug',
f'LEVEL {self.state.delegate_level} LOCAL STEP {self.state.local_iteration} GLOBAL STEP {self.state.iteration}',
extra={'msg_type': 'STEP'},
)
@@ -968,7 +968,7 @@ class AgentController:
action_type = type(prev_action).__name__
elapsed_time = time.time() - timestamp
self.log(
- 'info',
+ 'debug',
f'Cleared pending action after {elapsed_time:.2f}s: {action_type} (id={action_id})',
extra={'msg_type': 'PENDING_ACTION_CLEARED'},
)
@@ -977,7 +977,7 @@ class AgentController:
action_id = getattr(action, 'id', 'unknown')
action_type = type(action).__name__
self.log(
- 'info',
+ 'debug',
f'Set pending action: {action_type} (id={action_id})',
extra={'msg_type': 'PENDING_ACTION_SET'},
)