Skip to content

Commit 628e978

Browse files
authored
Merge pull request #636 from spawnia/always-get-channel-from-logger
Always call LogManager::channel() when registering logging
2 parents 8845a3d + 8bd0610 commit 628e978

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/LdapServiceProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ protected function registerLogging(): void
8080
}
8181

8282
Container::getInstance()->setLogger(
83-
($channel = Config::get('ldap.logging.channel'))
84-
? $logger->channel($channel)
85-
: $logger
83+
$logger->channel(
84+
Config::get('ldap.logging.channel')
85+
)
8686
);
8787
}
8888

0 commit comments

Comments
 (0)