File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/internal/Magento/Framework/App Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 12
12
use Magento \Framework \Autoload \Populator ;
13
13
use Magento \Framework \Config \File \ConfigFilePool ;
14
14
use Magento \Framework \Filesystem \DriverPool ;
15
+ use Psr \Log \LoggerInterface ;
15
16
16
17
/**
17
18
* A bootstrap of Magento application
@@ -258,6 +259,7 @@ public function run(AppInterface $application)
258
259
\Magento \Framework \Profiler::stop ('magento ' );
259
260
} catch (\Exception $ e ) {
260
261
\Magento \Framework \Profiler::stop ('magento ' );
262
+ $ this ->objectManager ->get (LoggerInterface::class)->error ($ e ->getMessage ());
261
263
if (!$ application ->catchException ($ this , $ e )) {
262
264
throw $ e ;
263
265
}
@@ -423,7 +425,7 @@ protected function terminate(\Exception $e)
423
425
if (!$ this ->objectManager ) {
424
426
throw new \DomainException ();
425
427
}
426
- $ this ->objectManager ->get (\ Psr \ Log \ LoggerInterface::class)->critical ($ e );
428
+ $ this ->objectManager ->get (LoggerInterface::class)->critical ($ e );
427
429
} catch (\Exception $ e ) {
428
430
$ message .= "Could not write error message to log. Please use developer mode to see the message. \n" ;
429
431
}
You can’t perform that action at this time.
0 commit comments