X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fdebug%2Flogger%2FLegacyLogger.php;h=974b044bebf8b51a5658706193edba1f88d2d9c9;hp=72c76434185e90079e2fd31c7b5ccb4f420c0e62;hb=88e3a888cc6823f11df79ac53eb963a7e4d2871a;hpb=b7e71525df3d401e3fd1e4815413610c65282465 diff --git a/includes/debug/logger/LegacyLogger.php b/includes/debug/logger/LegacyLogger.php index 72c7643418..974b044beb 100644 --- a/includes/debug/logger/LegacyLogger.php +++ b/includes/debug/logger/LegacyLogger.php @@ -102,16 +102,15 @@ class LegacyLogger extends AbstractLogger { $level = self::$levelMapping[$level]; } if ( $this->channel === 'DBQuery' - && isset( $context['method'] ) - && isset( $context['master'] ) - && isset( $context['runtime'] ) + && $level === self::$levelMapping[LogLevel::DEBUG] + && isset( $context['sql'] ) ) { // Also give the query information to the MWDebug tools $enabled = MWDebug::query( - $message, + $context['sql'], $context['method'], - $context['master'], - $context['runtime'] + $context['runtime'], + $context['db_host'] ); if ( $enabled ) { // If we the toolbar was enabled, return early so that we don't