Skip to content

Commit

Permalink
Merge pull request #636 from spawnia/always-get-channel-from-logger
Browse files Browse the repository at this point in the history
Always call LogManager::channel() when registering logging
  • Loading branch information
stevebauman authored Mar 7, 2024
2 parents 8845a3d + 8bd0610 commit 628e978
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/LdapServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ protected function registerLogging(): void
}

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

Expand Down

0 comments on commit 628e978

Please sign in to comment.