Skip to content

Commit

Permalink
OXDEV-7785 Revert Exception handler
Browse files Browse the repository at this point in the history
  • Loading branch information
AshrafOxid committed May 14, 2024
1 parent 058ee9a commit 16b7d58
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions source/Core/Exception/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
namespace OxidEsales\EshopCommunity\Core\Exception;

use OxidEsales\Eshop\Core\Registry;
use OxidEsales\EshopCommunity\Core\Di\ContainerFacade;
use OxidEsales\EshopCommunity\Internal\Framework\Logger\LoggerServiceFactory;
use OxidEsales\EshopCommunity\Internal\Transition\Utility\ContextInterface;
use OxidEsales\EshopCommunity\Internal\Transition\Utility\Context;

/**
* Exception handler, deals with all high level exceptions (caught in oxShopControl)
Expand Down Expand Up @@ -55,7 +54,7 @@ public function handleUncaughtException(\Throwable $exception)
* Its not possible to get the logger from the DI container.
* Try again to log original exception (without DI container) in order to show the root cause of a problem.
*/
$loggerServiceFactory = new LoggerServiceFactory(ContainerFacade::get(ContextInterface::class));
$loggerServiceFactory = new LoggerServiceFactory(new Context());
$logger = $loggerServiceFactory->getLogger();
$logger->error($exception);
}
Expand Down

0 comments on commit 16b7d58

Please sign in to comment.