From 6e29b3027747bdb3b15dd1e41d12b4bc5974c3bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=99=E5=AD=A6=E6=9D=B0?= Date: Thu, 3 May 2018 18:00:01 +0800 Subject: [PATCH] default value --- src/Listeners/QueryListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Listeners/QueryListener.php b/src/Listeners/QueryListener.php index 82d2300..67509a5 100644 --- a/src/Listeners/QueryListener.php +++ b/src/Listeners/QueryListener.php @@ -37,7 +37,7 @@ class QueryListener if (env('APP_DEBUG')) { $sql = str_replace("?", "'%s'", $event->sql); $log = vsprintf($sql, $event->bindings); - $requestId = app('request')->header('x-request-id'); + $requestId = app('request')->header('x-request-id','fastcgi_config_err'); $text = "$requestId\t$log\t"; $this->logger->debug($text, ['conn' => $event->connectionName, 'time' => $event->time.'ms']); }