From ef665c80ba3a9228366365cd1e88ba95fc95aa40 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 28 Dec 2020 16:25:26 +0100 Subject: [PATCH] ExceptionHandling: Show formatted stack trace on CLI --- src/Exceptions/Handlers/Legacy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exceptions/Handlers/Legacy.php b/src/Exceptions/Handlers/Legacy.php index bd78380f..356bd6f4 100644 --- a/src/Exceptions/Handlers/Legacy.php +++ b/src/Exceptions/Handlers/Legacy.php @@ -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)) {