X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdebug%2FMWDebug.php;h=057d8fa1a0cfabe526bbeca49c709ed1ff1c96c8;hp=6bcb0e6ff832c9923a56ff8d181e3686b3214031;hb=88e3a888cc6823f11df79ac53eb963a7e4d2871a;hpb=64e7e7d760fc3e043f7e01a89cc3697869aaa93b diff --git a/includes/debug/MWDebug.php b/includes/debug/MWDebug.php index 6bcb0e6ff8..057d8fa1a0 100644 --- a/includes/debug/MWDebug.php +++ b/includes/debug/MWDebug.php @@ -371,11 +371,11 @@ class MWDebug { * @since 1.19 * @param string $sql * @param string $function - * @param bool $isMaster * @param float $runTime Query run time + * @param string $dbhost * @return bool True if debugger is enabled, false otherwise */ - public static function query( $sql, $function, $isMaster, $runTime ) { + public static function query( $sql, $function, $runTime, $dbhost ) { if ( !self::$enabled ) { return false; } @@ -406,9 +406,8 @@ class MWDebug { $sql = UtfNormal\Validator::cleanUp( $sql ); self::$query[] = [ - 'sql' => $sql, + 'sql' => "$dbhost: $sql", 'function' => $function, - 'master' => (bool)$isMaster, 'time' => $runTime, ];