From 0ec677106eb295097abb1501444e0fecc4aa9744 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 4 Aug 2021 11:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Error/ErrorHandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/System/Error/ErrorHandler.php b/System/Error/ErrorHandler.php index 8c4814f4..a00aa5f8 100644 --- a/System/Error/ErrorHandler.php +++ b/System/Error/ErrorHandler.php @@ -118,9 +118,9 @@ class ErrorHandler extends Component implements ErrorInterface $data = Json::to($code, $this->category . ': ' . $message, $path); - logger()->trance($data, $this->category); + write($data, $this->category); - return response()->send($data); + return $data; } /**