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; } /**