From 0d08d5dabcd805dc96399ca9c21d89b8f49d6f34 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sun, 14 Apr 2019 18:40:39 +0200 Subject: [PATCH] SetLogger fix --- src/Factory/DependencyFactory.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Factory/DependencyFactory.php b/src/Factory/DependencyFactory.php index d089c32666..aacd155060 100644 --- a/src/Factory/DependencyFactory.php +++ b/src/Factory/DependencyFactory.php @@ -3,6 +3,7 @@ namespace Friendica\Factory; use Friendica\App; +use Friendica\Database\DBA; use Friendica\Factory; use Friendica\Util\BasePath; use Friendica\Util\BaseURL; @@ -34,6 +35,7 @@ class DependencyFactory // needed to call PConfig::init() Factory\ConfigFactory::createPConfig($configCache); $logger = Factory\LoggerFactory::create($channel, $config, $profiler); + DBA::setLogger($logger); Factory\LoggerFactory::createDev($channel, $config, $profiler); $baseURL = new BaseURL($config, $_SERVER); -- 2.39.5