From 8f7ff8894aa6b7d7fc7df3830ebd21fa50331145 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Sun, 29 May 2016 10:58:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BTrace=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E9=A9=B1=E5=8A=A8=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/log/driver/Trace.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/log/driver/Trace.php b/library/think/log/driver/Trace.php index bd9c6ea4..7df777e1 100644 --- a/library/think/log/driver/Trace.php +++ b/library/think/log/driver/Trace.php @@ -41,7 +41,7 @@ class Trace */ public function save(array $log = []) { - if (IS_AJAX || IS_CLI || IS_API || (defined('RESPONSE_TYPE') && 'html' != RESPONSE_TYPE)) { + if (IS_AJAX || IS_CLI || IS_API || (defined('RESPONSE_TYPE') && in_array(RESPONSE_TYPE, ['html', 'view']))) { // ajax cli api方式下不输出 return false; }