改进Trace日志驱动显示

This commit is contained in:
thinkphp
2016-05-29 10:58:15 +08:00
parent 99d29eb48f
commit 8f7ff8894a

View File

@@ -41,7 +41,7 @@ class Trace
*/ */
public function save(array $log = []) 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方式下不输出 // ajax cli api方式下不输出
return false; return false;
} }