mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进trace
This commit is contained in:
@@ -140,7 +140,7 @@ return [
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
'log' => [
|
||||
// 日志记录方式,支持 file socket trace sae
|
||||
// 日志记录方式,支持 file socket sae
|
||||
'type' => 'File',
|
||||
// 日志保存目录
|
||||
'path' => LOG_PATH,
|
||||
@@ -150,7 +150,7 @@ return [
|
||||
// | Trace设置
|
||||
// +----------------------------------------------------------------------
|
||||
'trace' => [
|
||||
'type' => 'Html'
|
||||
'type' => 'Html' //支持Html,Console 设为false则不显示
|
||||
],
|
||||
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
@@ -151,12 +151,14 @@ class App
|
||||
} else {
|
||||
$response = Response::create();
|
||||
}
|
||||
|
||||
self::$debug && Trace::inject($response);
|
||||
|
||||
|
||||
// 监听app_end
|
||||
Hook::listen('app_end', $response);
|
||||
|
||||
//注入Trace
|
||||
self::$debug && Trace::inject($response);
|
||||
|
||||
return $response;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user