change default value

This commit is contained in:
候学杰 2018-05-03 18:01:21 +08:00
parent 6e29b30277
commit 90d3f62239

View File

@ -37,7 +37,7 @@ class QueryListener
if (env('APP_DEBUG')) { if (env('APP_DEBUG')) {
$sql = str_replace("?", "'%s'", $event->sql); $sql = str_replace("?", "'%s'", $event->sql);
$log = vsprintf($sql, $event->bindings); $log = vsprintf($sql, $event->bindings);
$requestId = app('request')->header('x-request-id','fastcgi_config_err'); $requestId = app('request')->header('x-request-id','nginx_config_error');
$text = "$requestId\t$log\t"; $text = "$requestId\t$log\t";
$this->logger->debug($text, ['conn' => $event->connectionName, 'time' => $event->time.'ms']); $this->logger->debug($text, ['conn' => $event->connectionName, 'time' => $event->time.'ms']);
} }