We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1684b7 commit 2f8eec2Copy full SHA for 2f8eec2
src/Ydb.php
@@ -91,7 +91,11 @@ public function __construct($config = [], LoggerInterface $logger = null)
91
$this->database = $config['database'] ?? null;
92
$this->iam_config = $config['iam_config'] ?? [];
93
94
- $this->logger = $logger;
+ if ($logger){
95
+ $this->logger = $logger;
96
+ } else {
97
+ $this->logger = new NullLogger();
98
+ }
99
100
if(isset($config['credentials'])){
101
$this->iam_config['credentials'] = $config['credentials'];
0 commit comments