default value
This commit is contained in:
parent
09457a3f11
commit
6e29b30277
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user