From: Sarah Hoffmann Date: Sun, 11 Dec 2022 15:29:15 +0000 (+0100) Subject: return server name with status X-Git-Tag: deploy~83 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/1405f425e7077014abfa5854ef5ad1da1f54d724 return server name with status Helpful when asking people which server they hit. --- diff --git a/lib-php/website/status.php b/lib-php/website/status.php index 2839f72a..8ab11cc4 100644 --- a/lib-php/website/status.php +++ b/lib-php/website/status.php @@ -31,6 +31,7 @@ try { $aResponse = array( 'status' => 0, 'message' => 'OK', + 'server' => gethostname(), 'data_updated' => (new DateTime('@'.$epoch))->format(DateTime::RFC3339), 'software_version' => CONST_NominatimVersion ); @@ -46,7 +47,8 @@ try { if ($sOutputFormat == 'json') { $aResponse = array( 'status' => $oErr->getCode(), - 'message' => $oErr->getMessage() + 'message' => $oErr->getMessage(), + 'server' => gethostname() ); javascript_renderData($aResponse); } else {