From 1021e0c4169ca50784119c0e584f26e8f572c0dc Mon Sep 17 00:00:00 2001 From: Xingyao Wang Date: Fri, 22 Nov 2024 13:42:35 -0600 Subject: [PATCH] chore(runtime): Add logging for /server_info endpoint (#5208) Co-authored-by: openhands --- openhands/runtime/action_execution_server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openhands/runtime/action_execution_server.py b/openhands/runtime/action_execution_server.py index e8043133d9..ba03613dde 100644 --- a/openhands/runtime/action_execution_server.py +++ b/openhands/runtime/action_execution_server.py @@ -422,11 +422,13 @@ if __name__ == '__main__': uptime = current_time - client.start_time idle_time = current_time - client.last_execution_time - return { + response = { 'uptime': uptime, 'idle_time': idle_time, 'resources': get_system_stats(), } + logger.info('Server info endpoint response: %s', response) + return response @app.post('/execute_action') async def execute_action(action_request: ActionRequest):