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

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Robert Brennan 2025-04-24 13:00:21 -07:00 committed by GitHub
parent 52848cd3db
commit a948b0fef3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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'},
)