Krinkle has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/344683 )
Change subject: StartProfiler: Add hostname in xhgui record
......................................................................
StartProfiler: Add hostname in xhgui record
Bug: T161286
Change-Id: I51394fbb5a930a3565b065cec6d0f0089e5ead4c
---
M wmf-config/StartProfiler.php
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/83/344683/1
diff --git a/wmf-config/StartProfiler.php b/wmf-config/StartProfiler.php
index a569882..f04ec1a 100644
--- a/wmf-config/StartProfiler.php
+++ b/wmf-config/StartProfiler.php
@@ -177,6 +177,10 @@
$server['UNIQUE_ID'] = $reqId;
}
+ // Include web server name (SERVER_NAME is e.g. wikipedia.org,
+ // SERVER_ADDR is the LVS service name, e.g. appservers.svc)
+ $env['HOSTNAME'] = wfHostname();
+
// Re-insert scrubbed URL as REQUEST_URL:
$server['REQUEST_URI'] = $url;
$env['REQUEST_URI'] = $url;
--
To view, visit https://gerrit.wikimedia.org/r/344683
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I51394fbb5a930a3565b065cec6d0f0089e5ead4c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits