mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
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:
parent
52848cd3db
commit
a948b0fef3
@ -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'},
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user