jenkins-bot has submitted this change and it was merged.

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.net to know which message
keys are most highly used. The list is required by the WMF LangCom.

This will be reverted in an hour.

Bug: T65416
Change-Id: Ie91add33f32e380c5d5f9458af737e90d2b2693a
---
M wmf-config/CommonSettings.php
M wmf-config/InitialiseSettings.php
2 files changed, 7 insertions(+), 0 deletions(-)

Approvals:
  Ori.livneh: Looks good to me, approved
  Nikerabbit: Looks good to me, but someone else must approve
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: Ie91add33f32e380c5d5f9458af737e90d2b2693a
Gerrit-PatchSet: 5
Gerrit-Project: operations/mediawiki-config
Gerrit-Branch: master
Gerrit-Owner: Ori.livneh <[email protected]>
Gerrit-Reviewer: MF-Warburg <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: Ori.livneh <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to