Ori.livneh has uploaded a new change for review.
https://gerrit.wikimedia.org/r/190777
Change subject: Temporarily log message key lookups on four app servers
......................................................................
Temporarily log message key lookups on four app servers
To fulfill a request from translatewiki to know which message keys are most
highly used. This will be reverted in an hour.
Change-Id: Ie91add33f32e380c5d5f9458af737e90d2b2693a
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 7 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
refs/changes/77/190777/1
diff --git a/wmf-config/CommonSettings.php b/wmf-config/CommonSettings.php
index 46ec13a..9e95bbe 100644
--- a/wmf-config/CommonSettings.php
+++ b/wmf-config/CommonSettings.php
@@ -916,6 +916,12 @@
$wgLanguageCode = 'en';
}
+if ( in_array( gethostname(), array( 'mw1115', 'mw1120', 'mw1020', 'mw1025' )
) ) {
+ $wgHooks['MessageCache::get'][] = function ( $key ) {
+ wfDebugLog( 'message-usage', $key );
+ };
+}
+
wfProfileOut( "$fname-misc2" );
# :SEARCH:
diff --git a/wmf-config/InitialiseSettings.php
b/wmf-config/InitialiseSettings.php
index 600b440..239d923 100644
--- a/wmf-config/InitialiseSettings.php
+++ b/wmf-config/InitialiseSettings.php
@@ -4216,6 +4216,7 @@
'TitleBlacklist-cache' =>
"udp://$wmfUdp2logDest/TitleBlacklist-cache", // For T85428
'T87645' => "udp://$wmfUdp2logDest/T87645", // - Ori on behalf
of Tim, for https://gerrit.wikimedia.org/r/#/c/188304/
'T89258' => "udp://$wmfUdp2logDest/T89258", // - awight and
AndyRussG
+ 'message-usage' => "udp://$wmfUdp2logDest/message-usage", //
Ori 16-Feb-2015; for one hour only.
),
'+enwiki' => array(
--
To view, visit https://gerrit.wikimedia.org/r/190777
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie91add33f32e380c5d5f9458af737e90d2b2693a
Gerrit-PatchSet: 1
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits