From 28fe01dcdcc8c0adbf6698363ee2202683f08f85 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 5 Apr 2014 20:28:06 +0200 Subject: [PATCH] Remove trailing line break check from MemcachedBagOStuff::debugLog() wfDebugLog() already does the same, so it's unnecessary here. Change-Id: Ia7bbbd2806fcd638861d010835c33969322d262a --- includes/objectcache/MemcachedBagOStuff.php | 3 --- 1 file changed, 3 deletions(-) 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 ); } } -- 2.20.1