X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexception%2FMWExceptionHandler.php;h=4a72d72d6b2e464e54de32b83a8adf80fb457758;hb=9e8439e79d67788916d488f645108f79016d9aca;hp=b4e483bf53289f935f3d49a94b78d53f60fd1c9d;hpb=aac6b26c0bafc81287bb042304f1d346da94dc89;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/exception/MWExceptionHandler.php b/includes/exception/MWExceptionHandler.php index b4e483bf53..4a72d72d6b 100644 --- a/includes/exception/MWExceptionHandler.php +++ b/includes/exception/MWExceptionHandler.php @@ -350,7 +350,7 @@ class MWExceptionHandler { // Look at message to see if this is a class not found failure // HHVM: Class undefined: foo - // PHP5: Class 'foo' not found + // PHP7: Class 'foo' not found if ( preg_match( "/Class (undefined: \w+|'\w+' not found)/", $message ) ) { // phpcs:disable Generic.Files.LineLength $msg = <<isLoggable() ) { $logger = LoggerFactory::getInstance( 'exception' ); + $context = self::getLogContext( $e, $catcher ); + if ( $extraData ) { + $context['extraData'] = $extraData; + } $logger->error( self::getLogNormalMessage( $e ), - self::getLogContext( $e, $catcher ) + $context ); $json = self::jsonSerializeException( $e, false, FormatJson::ALL_OK, $catcher );