# HG changeset patch # User RhodeCode Admin # Date 2023-08-08 20:03:29 # Node ID 876a78433d69aa47c0a2ebd95dd46dec9d03898d # Parent 746257270d1bd15b9e1b473126d469eba1c88eea status: expose platform info usefull to debug docker LB issues diff --git a/vcsserver/http_main.py b/vcsserver/http_main.py --- a/vcsserver/http_main.py +++ b/vcsserver/http_main.py @@ -17,6 +17,7 @@ import io import os +import platform import sys import locale import logging @@ -460,8 +461,14 @@ class HTTPApplication(object): def status_view(self, request): import vcsserver - return {'status': 'OK', 'vcsserver_version': vcsserver.__version__, - 'pid': os.getpid()} + _platform_id = platform.uname()[1] or 'instance' + + return { + "status": "OK", + "vcsserver_version": vcsserver.__version__, + "platform": _platform_id, + "pid": os.getpid(), + } def service_view(self, request): import vcsserver