Skip to content

Commit 454bc06

Browse files
committed
ACP2E-1287: log exception to exception.log
1 parent 3a5b2af commit 454bc06

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Logger/LoggerProxy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function log($level, $message, array $context = [])
178178
*/
179179
protected function addExceptionToContext($message, array $context = []): array
180180
{
181-
if ($message instanceof \Throwable) {
181+
if ($message instanceof \Throwable && !isset($context['exception'])) {
182182
$context['exception'] = $message;
183183
}
184184
return $context;

0 commit comments

Comments
 (0)