Remove trailing line break check from MemcachedBagOStuff::debugLog()
authorAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sat, 5 Apr 2014 18:28:06 +0000 (20:28 +0200)
committerAlexandre Emsenhuber <mediawiki@emsenhuber.ch>
Sat, 5 Apr 2014 18:28:06 +0000 (20:28 +0200)
wfDebugLog() already does the same, so it's unnecessary here.

Change-Id: Ia7bbbd2806fcd638861d010835c33969322d262a

includes/objectcache/MemcachedBagOStuff.php

index 87acb53..e4bbb43 100644 (file)
@@ -168,9 +168,6 @@ class MemcachedBagOStuff extends BagOStuff {
         * Send a debug message to the log
         */
        protected function debugLog( $text ) {
-               if ( substr( $text, -1 ) !== "\n" ) {
-                       $text .= "\n";
-               }
                wfDebugLog( 'memcached', $text );
        }
 }