Skip to content

Commit 9565c44

Browse files
author
Franciszek Wawrzak
committed
improve exception handling in Layout render
1 parent 58c2171 commit 9565c44

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/internal/Magento/Framework/View/Layout.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,7 @@ public function renderNonCachedElement($name)
545545
if ($this->appState->getMode() === AppState::MODE_DEVELOPER) {
546546
throw $e;
547547
}
548-
$message = ($e instanceof LocalizedException) ? $e->getLogMessage() : $e->getMessage();
549-
$this->logger->critical($message);
548+
$this->logger->critical($e);
550549
}
551550
return $result;
552551
}

0 commit comments

Comments
 (0)