From: Alexandre Emsenhuber Date: Sat, 5 Apr 2014 18:28:06 +0000 (+0200) Subject: Remove trailing line break check from MemcachedBagOStuff::debugLog() X-Git-Tag: 1.31.0-rc.0~16369^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=28fe01dcdcc8c0adbf6698363ee2202683f08f85;p=lhc%2Fweb%2Fwiklou.git Remove trailing line break check from MemcachedBagOStuff::debugLog() wfDebugLog() already does the same, so it's unnecessary here. Change-Id: Ia7bbbd2806fcd638861d010835c33969322d262a --- diff --git a/includes/objectcache/MemcachedBagOStuff.php b/includes/objectcache/MemcachedBagOStuff.php index 87acb532ec..e4bbb430fb 100644 --- a/includes/objectcache/MemcachedBagOStuff.php +++ b/includes/objectcache/MemcachedBagOStuff.php @@ -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 ); } }