Skip to content

Commit

Permalink
Remove setLogger method. (Who need to replace logger at runtime?)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidz committed Jan 27, 2024
1 parent cdcf049 commit 41f79c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* `Elastica\Connection\Strategy\Simple`
* `Elastica\Connection\Strategy\StrategyFactory`
* `Elastica\Connection\Strategy\StrategyInterface`
* Removed `Elastica\Client::setLogger()` method [#2148](https://github.com/ruflin/Elastica/pull/2148)

### Added
* Added support for PHP 8.2 [#2136](https://github.com/ruflin/Elastica/pull/2136)
Expand Down
10 changes: 0 additions & 10 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -571,16 +571,6 @@ public function getLastResponse(): ?Elasticsearch
return $this->_lastResponse;
}

/**
* Replace the existing logger.
*/
public function setLogger(LoggerInterface $logger): self
{
$this->_logger = $logger;

return $this;
}

public function toElasticaResponse(Elasticsearch|ResponseInterface $elasticsearchResponse): Response
{
return ResponseConverter::toElastica($elasticsearchResponse);
Expand Down

0 comments on commit 41f79c9

Please sign in to comment.