mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
改进日志类型为trace并请求类型为ajax的情况下,不返回log信息
This commit is contained in:
@@ -35,7 +35,7 @@ class Trace
|
|||||||
*/
|
*/
|
||||||
public function save($log = [])
|
public function save($log = [])
|
||||||
{
|
{
|
||||||
|
if(IS_AJAX) return;
|
||||||
// 获取基本信息
|
// 获取基本信息
|
||||||
$current_uri = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
$current_uri = $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
|
||||||
$runtime = number_format(microtime(true) - START_TIME, 6);
|
$runtime = number_format(microtime(true) - START_TIME, 6);
|
||||||
|
|||||||
Reference in New Issue
Block a user