Skip to content

Commit 65d0085

Browse files
author
Oleksandr Iegorov
committed
MAGETWO-54937: Investigate and if possible implement more detailed error message logging
1 parent ccfbf85 commit 65d0085

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/App/StaticResource.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function launch()
109109
*/
110110
public function catchException(Bootstrap $bootstrap, \Exception $exception)
111111
{
112-
$this->getLogger()->critical($exception->getMessage() . "\n" . $exception->getTraceAsString());
112+
$this->getLogger()->critical($exception->getMessage());
113113
if ($bootstrap->isDeveloperMode()) {
114114
$this->response->setHttpResponseCode(404);
115115
$this->response->setHeader('Content-Type', 'text/plain');
@@ -176,7 +176,7 @@ private function getFilesystem()
176176
private function getLogger()
177177
{
178178
if (!$this->logger) {
179-
$this->logger = $this->objectManager->get(LoggerInterface::class);
179+
$this->logger = $this->objectManager->create(LoggerInterface::class);
180180
}
181181

182182
return $this->logger;

0 commit comments

Comments
 (0)