Show More
@@ -17,6 +17,7 b'' | |||||
17 |
|
17 | |||
18 | import io |
|
18 | import io | |
19 | import os |
|
19 | import os | |
|
20 | import platform | |||
20 | import sys |
|
21 | import sys | |
21 | import locale |
|
22 | import locale | |
22 | import logging |
|
23 | import logging | |
@@ -460,8 +461,14 b' class HTTPApplication(object):' | |||||
460 |
|
461 | |||
461 | def status_view(self, request): |
|
462 | def status_view(self, request): | |
462 | import vcsserver |
|
463 | import vcsserver | |
463 | return {'status': 'OK', 'vcsserver_version': vcsserver.__version__, |
|
464 | _platform_id = platform.uname()[1] or 'instance' | |
464 | 'pid': os.getpid()} |
|
465 | ||
|
466 | return { | |||
|
467 | "status": "OK", | |||
|
468 | "vcsserver_version": vcsserver.__version__, | |||
|
469 | "platform": _platform_id, | |||
|
470 | "pid": os.getpid(), | |||
|
471 | } | |||
465 |
|
472 | |||
466 | def service_view(self, request): |
|
473 | def service_view(self, request): | |
467 | import vcsserver |
|
474 | import vcsserver |
General Comments 0
You need to be logged in to leave comments.
Login now