We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 62fe0fd + 3453ef0 commit 16b6cabCopy full SHA for 16b6cab
2 files changed
composer.json
@@ -32,7 +32,7 @@
32
"require": {
33
"php": ">=7.4",
34
"ext-json": "*",
35
- "monolog/monolog": "^2.1",
+ "monolog/monolog": "^1.0|^2.1",
36
"nyholm/psr7": "^1.3",
37
"php-http/client-common": "^1.0",
38
"php-http/discovery": "^1.0",
src/Lib/Configuration.php
@@ -106,7 +106,7 @@ public function __construct(array $config)
106
$this->numRetries = (float)($config['num_retries'] ?? 3);
107
$this->retryIntervalSeconds = (float)($config['retry_interval_seconds'] ?? 1.0);
108
109
- $this->logLevel = $config->logLevel ?? Logger::WARNING;
+ $this->logLevel = $config['log_level'] ?? Logger::WARNING;
110
$this->logger = new Logger('typesense');
111
$this->logger->pushHandler(new StreamHandler('php://stdout', $this->logLevel));
112
0 commit comments