jenkins-bot has submitted this change and it was merged.
Change subject: Log requests with wfGetIP() === '127.0.0.1'
......................................................................
Log requests with wfGetIP() === '127.0.0.1'
Change-Id: I357d3ed1c1458289e9d3ab0466752aa7bd2c9a46
---
M wmf-config/CommonSettings.php
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Catrope: Looks good to me, approved
jenkins-bot: Verified
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 1c9db5c..c7b81f1 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -939,6 +939,12 @@
( $_REQUEST['wpSave'] ? 'save' : '' ) . "\n",
"udp://$wmfUdp2logDest/xff"
);
+ if ( wfGetIP() === '127.0.0.1' ) {
+ wfErrorLog( wfHostname() .
+ "\t{$_SERVER['HTTP_X_FORWARDED_FOR']},
{$_SERVER['REMOTE_ADDR']}\t" .
+ WebRequest::detectProtocol(),
"udp://$wmfUdp2logDest/localhost"
+ );
+ }
}
}
$wgExtensionFunctions[] = 'wfLogXFF';
--
To view, visit https://gerrit.wikimedia.org/r/93017
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I357d3ed1c1458289e9d3ab0466752aa7bd2c9a46
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Catrope <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits