Skip to content

Commit

Permalink
Fixed logger handling when configuration returned empty array.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbankowski committed Jan 8, 2025
1 parent bec83a9 commit 0fde509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ouzo/Core/Logger/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Logger
public static function getLogger(string $name, string $configuration = 'default'): LoggerAdapter
{
$logger = Arrays::getNestedValue(self::$loggers, [$name, $configuration]);
if (is_null($logger)) {
if (empty($logger)) {
$logger = new LoggerAdapter($name, $configuration, self::loadLogger($name, $configuration));
Arrays::setNestedValue(self::$loggers, [$name, $configuration], $logger);
}
Expand Down

0 comments on commit 0fde509

Please sign in to comment.