改进日志类型为trace并请求类型为ajax的情况下,不返回log信息

This commit is contained in:
huangdijia
2015-12-21 15:51:14 +08:00
parent a1184f4930
commit c0ef3e48a6

View File

@@ -35,7 +35,7 @@ class Trace
*/
public function save($log = [])
{
if(IS_AJAX) return;
// 获取基本信息
$current_uri = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
$runtime = number_format(microtime(true) - START_TIME, 6);