When the builds-api fails in a way that it triggers a 5xx error, in addition to the details being in the HTTP response it should log a detailed stack trace into the console. Currently just an access log line is printed, which does not offer any details about the error itself:
{"time":"2024-01-09T22:20:44.608062994Z","id":"","remote_ip":"127.0.0.1","host":"127.0.0.1:8000","method":"POST","uri":"/v1/build","user_agent":"toolforge_builds_cli toolforge_weld/1.4.0 python-requests/2.21.0","status":503,"error":"","latency":46481409,"latency_human":"46.481409ms","bytes_in":86,"bytes_out":133}