private function Client::logQuery in Search API Elasticsearch 8
Parameters
$path:
$method:
$data:
array $query:
1 call to Client::logQuery()
- Client::request in src/
Elastica/ Client.php
File
- src/
Elastica/ Client.php, line 35
Class
- Client
- Class Client @package Drupal\search_api_elasticsearch\Elastica
Namespace
Drupal\search_api_elasticsearch\ElasticaCode
private function logQuery($path, $method, $data, array $query) {
if (!$this->_logger || !$this->_logger instanceof RequestLogger) {
return;
}
$connection = $this
->getLastRequest()
->getConnection();
$connection_info = array(
'host' => $connection
->getHost(),
'port' => $connection
->getPort(),
'transport' => $connection
->getTransport(),
'headers' => $connection
->hasConfig('headers') ? $connection
->getConfig('headers') : array(),
);
$this->_logger
->logQuery($path, $method, $data, $connection_info, $query);
}