Skip to content

Commit

Permalink
feat: Changed log_level to min_log_level in Neo4jExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
exaby73 committed Dec 3, 2024
1 parent 3dad140 commit 2d3db7d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/DependencyInjection/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public function getConfigTreeBuilder(): TreeBuilder
->append($this->decorateDriverConfig())
->append($this->decorateSessionConfig())
->append($this->decorateTransactionConfig())
->scalarNode('log_level')
->info('Psr log level to use. Default is "error".')
->scalarNode('min_log_level')
->info('Minimum severity the driver will log. Follows Psr LogLevel. Default is "error".')
->defaultValue(LogLevel::ERROR)
->end()
->scalarNode('default_driver')
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/Neo4jExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function load(array $configs, ContainerBuilder $container): ContainerBuil
8,
new Reference(RequestFactoryInterface::class, ContainerInterface::NULL_ON_INVALID_REFERENCE)
)
->setArgument(9, $mergedConfig['log_level'] ?? null)
->setArgument(9, $mergedConfig['min_log_level'] ?? null)
->setArgument(10, new Reference(LoggerInterface::class, ContainerInterface::NULL_ON_INVALID_REFERENCE))
->setAbstract(false);

Expand Down
2 changes: 1 addition & 1 deletion tests/App/config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ parameters:
neo4j.dsn.simple: bolt://test:test@localhost

neo4j:
log_level: warning
min_log_level: warning
default_driver: neo4j-test
default_driver_config:
acquire_connection_timeout: 10
Expand Down

0 comments on commit 2d3db7d

Please sign in to comment.