All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
37.37k stars 4.23k forks source link

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

Closed xingyaoww closed 3 days ago

xingyaoww commented 3 days ago

Added INFO level logging when the /server_info endpoint is called to improve observability of server status requests.

This allow us to better debug cases where runtime dies - so we can know better if it is caused by OOM or something else.


To run this PR locally, use the following command:

docker run -it --rm   -p 3000:3000   -v /var/run/docker.sock:/var/run/docker.sock   --add-host host.docker.internal:host-gateway   -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:f8c994d-nikolaik   --name openhands-app-f8c994d   docker.all-hands.dev/all-hands-ai/openhands:f8c994d