ExceptionHandling: Show formatted stack trace on CLI

This commit is contained in:
Igor Scheller 2020-12-28 16:25:26 +01:00 committed by msquare
parent 6aca6f08e2
commit ef665c80ba
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class Legacy implements HandlerInterface
$this->stripBasePath($e->getFile()),
$e->getLine(),
$previous ? $previous->getMessage() : 'None',
json_encode($e->getTrace())
json_encode($e->getTrace(), PHP_SAPI == 'cli' ? JSON_PRETTY_PRINT : 0)
));
if (is_null($this->log)) {