diff --git a/src/Library/Logger.php b/src/Library/Logger.php index d33901f..f7a94f9 100644 --- a/src/Library/Logger.php +++ b/src/Library/Logger.php @@ -96,12 +96,14 @@ class Logger if ($this->throwable !== null) { $throwable = $this->throwable; + $previous = $throwable->getPrevious(); $content['throwable'] = [ 'message' => $throwable->getMessage(), 'code' => $throwable->getCode(), 'file' => $throwable->getFile(), 'line' => $throwable->getLine(), 'trace' => $this->isError ? $throwable->getTrace() : null, + 'previous_trace' => $previous ? $previous->getTrace() : null, 'data' => method_exists($throwable, 'getData') ? $throwable->getData() : null, ]; }