Skip to content

Commit

Permalink
fix: correct service parameters for elastic_search type handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenneth-Sills committed Feb 4, 2025
1 parent 33bf5ca commit a9be50c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/MonologExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private function buildHandler(ContainerBuilder $container, $name, array $handler
$factory = class_exists('Elastic\Elasticsearch\ClientBuilder') ? 'Elastic\Elasticsearch\ClientBuilder' : 'Elasticsearch\ClientBuilder';
$client->setFactory([$factory, 'fromConfig']);
$clientArguments = [
'host' => $handler['elasticsearch']['host'],
'hosts' => [$handler['elasticsearch']['host']],
];

if (isset($handler['elasticsearch']['user'], $handler['elasticsearch']['password'])) {
Expand Down

0 comments on commit a9be50c

Please sign in to comment.