fix logQuery
This commit is contained in:
parent
200a5e2294
commit
21001f1d34
|
@ -36,7 +36,7 @@ class ElasticaLogger
|
|||
* @param array $data arguments
|
||||
* @param float $time execution time
|
||||
*/
|
||||
public function logQuery($path, $method, array $data, $time)
|
||||
public function logQuery($path, $method, $data, $time)
|
||||
{
|
||||
$this->queries[] = array(
|
||||
'path' => $path,
|
||||
|
@ -47,7 +47,7 @@ class ElasticaLogger
|
|||
|
||||
if (null !== $this->logger) {
|
||||
$message = sprintf("%s (%s) %0.2f ms", $path, $method, $time * 1000);
|
||||
$this->logger->info($message, $data);
|
||||
$this->logger->info($message, (array) $data);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue