Skip to content

Commit 7e725ec

Browse files
committed
Fix wrong initialization of exception logger in dev/tests bootstrap files
1 parent a79e818 commit 7e725ec

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
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();
25+
$exceptionHandler = new \Magento\Framework\Logger\Handler\Exception($filesystem);
2626
$loggerHandlers = [
2727
'system' => new \Magento\Framework\Logger\Handler\System($filesystem, $exceptionHandler),
2828
'debug' => new \Magento\Framework\Logger\Handler\Debug($filesystem)

dev/tests/integration/framework/bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
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();
29+
$exceptionHandler = new \Magento\Framework\Logger\Handler\Exception($filesystem);
3030
$loggerHandlers = [
3131
'system' => new \Magento\Framework\Logger\Handler\System($filesystem, $exceptionHandler),
3232
'debug' => new \Magento\Framework\Logger\Handler\Debug($filesystem)

0 commit comments

Comments
 (0)