foramt
This commit is contained in:
parent
15ae5936aa
commit
2c83fc85a2
|
@ -37,7 +37,7 @@ class QueryListener
|
|||
if (env('APP_DEBUG')) {
|
||||
$sql = str_replace("?", "'%s'", $event->sql);
|
||||
$log = vsprintf($sql, $event->bindings);
|
||||
$this->logger->info($log, ['conn' => $event->connectionName, 'time' => $event->time]);
|
||||
$this->logger->info($log.';', ['conn' => $event->connectionName, 'time' => $event->time.'ms']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user