Skip to content

Commit 94616b0

Browse files
committed
Always call LogManager::channel() when registering logging
1 parent 8845a3d commit 94616b0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/LdapServiceProvider.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,9 @@ protected function registerLogging(): void
7979
return;
8080
}
8181

82-
Container::getInstance()->setLogger(
83-
($channel = Config::get('ldap.logging.channel'))
84-
? $logger->channel($channel)
85-
: $logger
86-
);
82+
$channelName = Config::get('ldap.logging.channel');
83+
$channel = $logger->channel($channelName);
84+
Container::getInstance()->setLogger($channel);
8785
}
8886

8987
/**

0 commit comments

Comments
 (0)