From e744b1a89821d0790d71b4f31ac51864ffb94beb Mon Sep 17 00:00:00 2001 From: zj Date: Thu, 20 Aug 2026 15:01:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=97=A5=E5=BF=97=E6=89=93?= =?UTF-8?q?=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Library/Logger.php | 2 ++ 1 file changed, 2 insertions(+) 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, ]; }