Skip to content

Commit

Permalink
messageaction too
Browse files Browse the repository at this point in the history
  • Loading branch information
enyst committed Nov 11, 2024
1 parent b91e54c commit 1aa983c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion openhands/controller/agent_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,12 @@ async def _handle_message_action(self, action: MessageAction):
action (MessageAction): The message action to handle.
"""
if action.source == EventSource.USER:
# Use info level if LOG_ALL_EVENTS is set
log_level = (
'info' if os.getenv('LOG_ALL_EVENTS') in ('true', '1') else 'debug'
)
self.log(
'debug',
log_level,
str(action),
extra={'msg_type': 'ACTION', 'event_source': EventSource.USER},
)
Expand Down

0 comments on commit 1aa983c

Please sign in to comment.