]> git.mxchange.org Git - friendica.git/commitdiff
Logger - Forgot Logger::init() with VoidLogger
authorPhilipp Holzer <admin@philipp.info>
Sat, 2 Mar 2019 13:40:59 +0000 (14:40 +0100)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 23 Mar 2019 02:56:55 +0000 (22:56 -0400)
src/Factory/LoggerFactory.php

index 3658d33a5187c6aa860b50c2924e3dfdbc5b946a..340f5fa5c049e29e8409b1bf1154a86201cc23d4 100644 (file)
@@ -44,7 +44,9 @@ class LoggerFactory
        public static function create($channel, Configuration $config)
        {
                if (empty($config->get('system', 'debugging', false))) {
-                       return new VoidLogger();
+                       $logger = new VoidLogger();
+                       Logger::init($logger);
+                       return $logger;
                }
 
                $introspector = new Introspection(LogLevel::DEBUG, self::$ignoreClassList);