From b1f8855078f2c7a55cabd0230ea239f7ff876f6b Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Wed, 16 Jan 2013 20:08:16 +0100 Subject: [PATCH] Follow-up Id75401be (e32c8afe): no more need to prefix debug messages Since that revision, messages sent through wfDebugLog() and without a corresponding entry in $wgDebugLogGroups will be prefixed there before being sent to wfDebug(), so it's no longer needed to have the exact same checks for the debug messages in memcached clients. Change-Id: Ia690a87bc6d1994fe371816470efde6d09e3b881 --- includes/objectcache/MemcachedBagOStuff.php | 5 ----- includes/objectcache/MemcachedClient.php | 5 ----- 2 files changed, 10 deletions(-) diff --git a/includes/objectcache/MemcachedBagOStuff.php b/includes/objectcache/MemcachedBagOStuff.php index 922c8e6a94..aebcbe73bb 100644 --- a/includes/objectcache/MemcachedBagOStuff.php +++ b/includes/objectcache/MemcachedBagOStuff.php @@ -179,11 +179,6 @@ class MemcachedBagOStuff extends BagOStuff { * Send a debug message to the log */ protected function debugLog( $text ) { - global $wgDebugLogGroups; - if( !isset( $wgDebugLogGroups['memcached'] ) ) { - # Prefix message since it will end up in main debug log file - $text = "memcached: $text"; - } if ( substr( $text, -1 ) !== "\n" ) { $text .= "\n"; } diff --git a/includes/objectcache/MemcachedClient.php b/includes/objectcache/MemcachedClient.php index 1ab59c68b7..faa676d0a4 100644 --- a/includes/objectcache/MemcachedClient.php +++ b/includes/objectcache/MemcachedClient.php @@ -1067,11 +1067,6 @@ class MWMemcached { * @param $text string */ function _debugprint( $text ) { - global $wgDebugLogGroups; - if( !isset( $wgDebugLogGroups['memcached'] ) ) { - # Prefix message since it will end up in main debug log file - $text = "memcached: $text"; - } wfDebugLog( 'memcached', $text ); } -- 2.20.1