jenkins-bot has submitted this change and it was merged. (
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(-)
Approvals:
Krinkle: Looks good to me, approved
Legoktm: Looks good to me, but someone else must approve
jenkins-bot: Verified
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: merged
Gerrit-Change-Id: I51394fbb5a930a3565b065cec6d0f0089e5ead4c
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Krinkle <[email protected]>
Gerrit-Reviewer: Florianschmidtwelzow <[email protected]>
Gerrit-Reviewer: Krinkle <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits