Skip to content

Commit 16b6cab

Browse files
authored
Merge branch 'master' into use-httplug
2 parents 62fe0fd + 3453ef0 commit 16b6cab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"require": {
3333
"php": ">=7.4",
3434
"ext-json": "*",
35-
"monolog/monolog": "^2.1",
35+
"monolog/monolog": "^1.0|^2.1",
3636
"nyholm/psr7": "^1.3",
3737
"php-http/client-common": "^1.0",
3838
"php-http/discovery": "^1.0",

src/Lib/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function __construct(array $config)
106106
$this->numRetries = (float)($config['num_retries'] ?? 3);
107107
$this->retryIntervalSeconds = (float)($config['retry_interval_seconds'] ?? 1.0);
108108

109-
$this->logLevel = $config->logLevel ?? Logger::WARNING;
109+
$this->logLevel = $config['log_level'] ?? Logger::WARNING;
110110
$this->logger = new Logger('typesense');
111111
$this->logger->pushHandler(new StreamHandler('php://stdout', $this->logLevel));
112112

0 commit comments

Comments
 (0)