ExceptionHandling: Show formatted stack trace on CLI

main
Igor Scheller 4 years ago committed by msquare
parent 6aca6f08e2
commit ef665c80ba

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

Loading…
Cancel
Save