Skip to content

Commit

Permalink
Log query arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
tpatartmajeur committed Aug 23, 2024
1 parent 7511e5d commit c92c40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elastica/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function sendRequest(RequestInterface $request): Elasticsearch
$es = parent::sendRequest($request);

Check failure on line 76 in src/Elastica/Client.php

View workflow job for this annotation

GitHub Actions / PHPStan (PHP 7.4, Symfony 5.4.* + highest deps)

Call to an undefined static method Elastica\Client::sendRequest().

Check failure on line 76 in src/Elastica/Client.php

View workflow job for this annotation

GitHub Actions / PHPStan (PHP 7.4, Symfony 5.4.* + lowest deps)

Call to an undefined static method Elastica\Client::sendRequest().
$response = new Response($es->asString(), $es->getStatusCode());
} catch (ExceptionInterface $e) {
$this->logQuery($request->getUri(), $request->getMethod(), [], $query, 0, 0, 0);
$this->logQuery($request->getUri(), $request->getMethod(), $query, [], 0, 0, 0);

Check failure on line 79 in src/Elastica/Client.php

View workflow job for this annotation

GitHub Actions / PHPStan (PHP 7.4, Symfony 5.4.* + highest deps)

Call to method getMethod() on an unknown class Psr\Http\Message\RequestInterface.
throw $e;
}

Expand Down

0 comments on commit c92c40c

Please sign in to comment.