From: Chad Horohoe Date: Thu, 6 Nov 2014 18:33:17 +0000 (-0800) Subject: Profiler: Move debug(Group)() to ProfilerStandard, not used elsewhere X-Git-Tag: 1.31.0-rc.0~13366^2 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;h=1aa7a725080f634466ed748a293d6105dd4b61c6;p=lhc%2Fweb%2Fwiklou.git Profiler: Move debug(Group)() to ProfilerStandard, not used elsewhere Change-Id: I6066d0e2a80d04808f772396f578521857d6c550 --- diff --git a/includes/profiler/Profiler.php b/includes/profiler/Profiler.php index 46296917cc..3f798bcd08 100644 --- a/includes/profiler/Profiler.php +++ b/includes/profiler/Profiler.php @@ -226,27 +226,4 @@ abstract class Profiler { } } } - - /** - * Add an entry in the debug log file - * - * @param string $s String to output - */ - protected function debug( $s ) { - if ( function_exists( 'wfDebug' ) ) { - wfDebug( $s ); - } - } - - /** - * Add an entry in the debug log group - * - * @param string $group Group to send the message to - * @param string $s String to output - */ - protected function debugGroup( $group, $s ) { - if ( function_exists( 'wfDebugLog' ) ) { - wfDebugLog( $group, $s ); - } - } } diff --git a/includes/profiler/ProfilerStandard.php b/includes/profiler/ProfilerStandard.php index ea13bfb748..deb2f2600c 100644 --- a/includes/profiler/ProfilerStandard.php +++ b/includes/profiler/ProfilerStandard.php @@ -541,4 +541,27 @@ class ProfilerStandard extends Profiler { } return null; } + + /** + * Add an entry in the debug log file + * + * @param string $s String to output + */ + protected function debug( $s ) { + if ( function_exists( 'wfDebug' ) ) { + wfDebug( $s ); + } + } + + /** + * Add an entry in the debug log group + * + * @param string $group Group to send the message to + * @param string $s String to output + */ + protected function debugGroup( $group, $s ) { + if ( function_exists( 'wfDebugLog' ) ) { + wfDebugLog( $group, $s ); + } + } }