From: Hypolite Petovan Date: Mon, 11 Mar 2019 02:19:12 +0000 (-0400) Subject: Fix fatal error when using Logger::devLog X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=579d42a2155d9581147a3bc1e672ac242509133d;p=friendica.git Fix fatal error when using Logger::devLog - Error message is "Call to a member function log() on null in src/Core/Logger.php:304" --- diff --git a/src/Factory/DependencyFactory.php b/src/Factory/DependencyFactory.php index 52178bb77f..9d84e324ab 100644 --- a/src/Factory/DependencyFactory.php +++ b/src/Factory/DependencyFactory.php @@ -31,6 +31,7 @@ class DependencyFactory // needed to call PConfig::init() Factory\ConfigFactory::createPConfig($configCache); $logger = Factory\LoggerFactory::create($channel, $config); + Factory\LoggerFactory::createDev($channel, $config); return new App($basePath, $config, $logger, $profiler, $isBackend); }