Skip to content

Commit d23af6e

Browse files
author
roman
committed
MAGETWO-96505: Fixed incorrect stacktrace displaying
1 parent c351a34 commit d23af6e

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
############################################
3131
## default index file
3232
## Specifies option, to use methods arguments in backtrace or not
33-
SetEnv DEBUG_SHOW_ARGS 0
33+
SetEnv MAGE_DEBUG_SHOW_ARGS 1
3434

3535
DirectoryIndex index.php
3636

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ private function buildContentFromException(\Exception $exception)
220220
$exception->getTrace(),
221221
true,
222222
true,
223-
boolval(getenv('DEBUG_SHOW_ARGS'))
223+
(bool)getenv('MAGE_DEBUG_SHOW_ARGS')
224224
)
225225
);
226226
}
@@ -325,7 +325,7 @@ private function handleGenericReport(Bootstrap $bootstrap, \Exception $exception
325325
$exception->getTrace(),
326326
true,
327327
true,
328-
boolval(getenv('DEBUG_SHOW_ARGS'))
328+
(bool)getenv('MAGE_DEBUG_SHOW_ARGS')
329329
)
330330
];
331331
$params = $bootstrap->getParams();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function catchException(Bootstrap $bootstrap, \Exception $exception)
153153
$exception->getTrace(),
154154
true,
155155
true,
156-
boolval(getenv('DEBUG_SHOW_ARGS'))
156+
(bool)getenv('MAGE_DEBUG_SHOW_ARGS')
157157
)
158158
);
159159
$this->response->sendResponse();

lib/internal/Magento/Framework/Message/Manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ public function addException(\Exception $exception, $alternativeText = null, $gr
253253
$exception->getTrace(),
254254
true,
255255
true,
256-
boolval(getenv('DEBUG_SHOW_ARGS'))
256+
(bool)getenv('DEBUG_SHOW_ARGS')
257257
)
258258
);
259259

@@ -296,7 +296,7 @@ public function addExceptionMessage(\Exception $exception, $alternativeText = nu
296296
$exception->getTrace(),
297297
true,
298298
true,
299-
boolval(getenv('DEBUG_SHOW_ARGS'))
299+
(bool)getenv('MAGE_DEBUG_SHOW_ARGS')
300300
)
301301
);
302302

0 commit comments

Comments
 (0)