##// END OF EJS Templates
status: expose platform info usefull to debug docker LB issues
super-admin -
r1148:876a7843 default
parent child Browse files
Show More
@@ -17,6 +17,7 b''
17 17
18 18 import io
19 19 import os
20 import platform
20 21 import sys
21 22 import locale
22 23 import logging
@@ -460,8 +461,14 b' class HTTPApplication(object):'
460 461
461 462 def status_view(self, request):
462 463 import vcsserver
463 return {'status': 'OK', 'vcsserver_version': vcsserver.__version__,
464 'pid': os.getpid()}
464 _platform_id = platform.uname()[1] or 'instance'
465
466 return {
467 "status": "OK",
468 "vcsserver_version": vcsserver.__version__,
469 "platform": _platform_id,
470 "pid": os.getpid(),
471 }
465 472
466 473 def service_view(self, request):
467 474 import vcsserver
General Comments 0
You need to be logged in to leave comments. Login now