|
@@ 594-597 (lines=4) @@
|
| 591 |
|
); |
| 592 |
|
|
| 593 |
|
$json = self::jsonSerializeException( $e, false, FormatJson::ALL_OK ); |
| 594 |
|
if ( $json !== false ) { |
| 595 |
|
$logger = LoggerFactory::getInstance( 'exception-json' ); |
| 596 |
|
$logger->error( $json, [ 'private' => true ] ); |
| 597 |
|
} |
| 598 |
|
|
| 599 |
|
Hooks::run( 'LogException', [ $e, false ] ); |
| 600 |
|
} |
|
@@ 625-628 (lines=4) @@
|
| 622 |
|
|
| 623 |
|
// Include all errors in the json log (surpressed errors will be flagged) |
| 624 |
|
$json = self::jsonSerializeException( $e, false, FormatJson::ALL_OK ); |
| 625 |
|
if ( $json !== false ) { |
| 626 |
|
$logger = LoggerFactory::getInstance( "{$channel}-json" ); |
| 627 |
|
$logger->error( $json, [ 'private' => true ] ); |
| 628 |
|
} |
| 629 |
|
|
| 630 |
|
Hooks::run( 'LogException', [ $e, $suppressed ] ); |
| 631 |
|
} |