Browse Source

chore(runtime): Add logging for /server_info endpoint (#5208)

Co-authored-by: openhands <openhands@all-hands.dev>
Xingyao Wang 1 year ago
parent
commit
1021e0c416
1 changed files with 3 additions and 1 deletions
  1. 3 1
      openhands/runtime/action_execution_server.py

+ 3 - 1
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):