]> git.mxchange.org Git - friendica.git/commitdiff
SetLogger fix
authorPhilipp Holzer <admin@philipp.info>
Sun, 14 Apr 2019 16:40:39 +0000 (18:40 +0200)
committerPhilipp Holzer <admin@philipp.info>
Sun, 14 Apr 2019 16:40:39 +0000 (18:40 +0200)
src/Factory/DependencyFactory.php

index d089c326669ac0ff048a113d1cacff03d17d4548..aacd1550605c365b46be6a82a8bf2a0ed64d75e3 100644 (file)
@@ -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);