From 52a0dd1dfc7cafc400ab4565c2363049a3534435 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 2 Feb 2016 11:02:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E5=BC=82=E5=B8=B8=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=86=99=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Error.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Error.php b/library/think/Error.php index 02a92752..218d6710 100644 --- a/library/think/Error.php +++ b/library/think/Error.php @@ -74,7 +74,7 @@ class Error } // 记录异常日志 - Log::write("[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]", 'error'); + Log::record("[{$data['code']}]{$data['message']}[{$data['file']}:{$data['line']}]", 'error'); // 输出错误信息 self::output($exception, $data); // 禁止往下传播已处理过的异常 @@ -110,7 +110,7 @@ class Error { // 写入日志 Log::save(); - + if ($error = error_get_last()) { // 将错误信息托管至think\ErrorException $exception = new ErrorException(