]> git.mxchange.org Git - friendica.git/commitdiff
Fix fatal error when using Logger::devLog
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 11 Mar 2019 02:19:12 +0000 (22:19 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 11 Mar 2019 02:19:12 +0000 (22:19 -0400)
- Error message is "Call to a member function log() on null in src/Core/Logger.php:304"

src/Factory/DependencyFactory.php

index 52178bb77fb9d41e753205f187d94d20b55f191d..9d84e324ab5370a32bb7b7692d109b9432c72ae1 100644 (file)
@@ -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);
        }