Skip to content

Commit ee40290

Browse files
committed
Add missing exception handler to dev/tests bootstrap files
1 parent 255da62 commit ee40290

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

dev/tests/api-functional/framework/bootstrap.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222

2323
if ($settings->get('TESTS_EXTRA_VERBOSE_LOG')) {
2424
$filesystem = new \Magento\Framework\Filesystem\Driver\File();
25+
$exceptionHandler = new \Magento\Framework\Logger\Handler\Exception();
2526
$loggerHandlers = [
26-
'system' => new \Magento\Framework\Logger\Handler\System($filesystem),
27-
'debug' => new \Magento\Framework\Logger\Handler\Debug($filesystem)
27+
'system' => new \Magento\Framework\Logger\Handler\System($filesystem, $exceptionHandler),
28+
'debug' => new \Magento\Framework\Logger\Handler\Debug($filesystem, $exceptionHandler)
2829
];
2930
$shell = new \Magento\Framework\Shell(
3031
new \Magento\Framework\Shell\CommandRenderer(),

dev/tests/integration/framework/bootstrap.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@
2626

2727
if ($settings->get('TESTS_EXTRA_VERBOSE_LOG')) {
2828
$filesystem = new \Magento\Framework\Filesystem\Driver\File();
29+
$exceptionHandler = new \Magento\Framework\Logger\Handler\Exception();
2930
$loggerHandlers = [
30-
'system' => new \Magento\Framework\Logger\Handler\System($filesystem),
31-
'debug' => new \Magento\Framework\Logger\Handler\Debug($filesystem)
31+
'system' => new \Magento\Framework\Logger\Handler\System($filesystem, $exceptionHandler),
32+
'debug' => new \Magento\Framework\Logger\Handler\Debug($filesystem, $exceptionHandler)
3233
];
3334
$shell = new \Magento\Framework\Shell(
3435
new \Magento\Framework\Shell\CommandRenderer(),

0 commit comments

Comments
 (0)