We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
public function handle($request, Closure $next) { $debug = $this->app->isDebug();
// 注册日志监听 if ($debug) { $this->log = []; $this->app->event->listen(LogWrite::class, function ($event) { if (empty($this->config['channel']) || $this->config['channel'] == $event->channel) { $this->log = array_merge_recursive($this->log, $event->log); } }); } $response = $next($request); // Trace调试注入 if ($debug) { //这里的判断,还是读取的最初的值,无法在其他中间件或控制器中,改变此属性 $data = $response->getContent(); $this->traceDebug($response, $data); $response->content($data); } return $response; }
The text was updated successfully, but these errors were encountered:
设计如此 在部署模式应当关闭trace或者使用socket方式
Sorry, something went wrong.
No branches or pull requests
public function handle($request, Closure $next)
{
$debug = $this->app->isDebug();
The text was updated successfully, but these errors were encountered: