Skip to content

Commit

Permalink
Always call LogManager::channel() when registering logging
Browse files Browse the repository at this point in the history
  • Loading branch information
spawnia committed Mar 6, 2024
1 parent 8845a3d commit 94616b0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/LdapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,9 @@ protected function registerLogging(): void
return;
}

Container::getInstance()->setLogger(
($channel = Config::get('ldap.logging.channel'))
? $logger->channel($channel)
: $logger
);
$channelName = Config::get('ldap.logging.channel');
$channel = $logger->channel($channelName);
Container::getInstance()->setLogger($channel);
}

/**
Expand Down

0 comments on commit 94616b0

Please sign in to comment.