Follow-up Id75401be (e32c8afe): no more need to prefix debug messages
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 16 Jan 2013 19:08:16 +0000 (20:08 +0100)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Wed, 16 Jan 2013 19:08:16 +0000 (20:08 +0100)
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
includes/objectcache/MemcachedClient.php

index 922c8e6..aebcbe7 100644 (file)
@@ -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";
                }
index 1ab59c6..faa676d 100644 (file)
@@ -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 );
        }