From 138566d2bab86ac564dfb317144a38842542abe9 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 19 Aug 2016 10:47:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E9=9D=A2=20=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E9=A1=B5=E9=9D=A2=E7=9A=84header=E5=92=8Cparam?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/App.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/library/think/App.php b/library/think/App.php index c0fed042..37748dc2 100644 --- a/library/think/App.php +++ b/library/think/App.php @@ -102,8 +102,13 @@ class App // 记录当前调度信息 $request->dispatch($dispatch); - // 记录路由信息 - self::$debug && Log::record('[ ROUTE ] ' . var_export($dispatch, true), 'info'); + // 记录路由和请求信息 + if (self::$debug) { + Log::record('[ ROUTE ] ' . var_export($dispatch, true), 'info'); + Log::record('[ HEADER ] ' . var_export($request->header(), true), 'info'); + Log::record('[ PARAM ] ' . var_export($request->param(), true), 'info'); + } + // 监听app_begin Hook::listen('app_begin', $dispatch);