diff --git a/src/App.php b/src/App.php index 38408e897f..51134c05e7 100644 --- a/src/App.php +++ b/src/App.php @@ -438,7 +438,7 @@ class App { $this->setupContainerForAddons(); - $this->container = $this->container->addRule(LoggerInterface::class, ['constructParams' => [LogChannel::WORKER]]); + $this->setupContainerForLogger(LogChannel::WORKER); DI::init($this->container); \Friendica\Core\Logger\Handler\ErrorHandler::register($this->container->create(\Psr\Log\LoggerInterface::class));