Merge pull request #609 from PeerJ/FixLoggerWithNullTransport
make sure headers is set prior to accessing
This commit is contained in:
commit
12797c60fa
|
@ -28,7 +28,7 @@ class Client extends ElasticaClient
|
|||
'host' => $connection->getHost(),
|
||||
'port' => $connection->getPort(),
|
||||
'transport' => $connection->getTransport(),
|
||||
'headers' => $connection->getConfig('headers'),
|
||||
'headers' => $connection->hasConfig('headers') ? $connection->getConfig('headers') : array(),
|
||||
);
|
||||
|
||||
$this->_logger->logQuery($path, $method, $data, $time, $connection_array, $query);
|
||||
|
|
Loading…
Reference in a new issue