增加app_trace 参数用于配置是否开启trace调试

This commit is contained in:
thinkphp
2016-07-03 10:39:23 +08:00
parent fdfebe73f6
commit fbf9e938e8
5 changed files with 54 additions and 54 deletions

View File

@@ -155,7 +155,9 @@ class App
Hook::listen('app_end', $response);
// Trace调试注入
Debug::inject($response);
if (Config::get('app_trace')) {
Debug::inject($response);
}
return $response;
}