From d186cce5118dce5f28ec4473d713a02b2cec5457 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 24 Aug 2016 16:12:02 -0700 Subject: [PATCH] debug: Interpolate log messages Change-Id: Ib61a50863022db796d69264bf738fb0b22f776e9 --- includes/debug/MWDebug.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/debug/MWDebug.php b/includes/debug/MWDebug.php index 8acf04e0d2..8c019d87bb 100644 --- a/includes/debug/MWDebug.php +++ b/includes/debug/MWDebug.php @@ -20,6 +20,8 @@ * @file */ +use MediaWiki\Logger\LegacyLogger; + /** * New debugger system that outputs a toolbar on page view. * @@ -334,6 +336,7 @@ class MWDebug { if ( isset( $context['seconds_elapsed'] ) && isset( $context['memory_used'] ) ) { $prefix .= "{$context['seconds_elapsed']} {$context['memory_used']} "; } + $str = LegacyLogger::interpolate( $str, $context ); $str = $prefix . $str; } self::$debug[] = rtrim( UtfNormal\Validator::cleanUp( $str ) ); -- 2.20.1