From dd333c76f88c579a783232bfd0e8fa12e4d6b492 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Sat, 2 Mar 2019 14:40:59 +0100 Subject: [PATCH] Logger - Forgot Logger::init() with VoidLogger --- src/Factory/LoggerFactory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Factory/LoggerFactory.php b/src/Factory/LoggerFactory.php index 3658d33a51..340f5fa5c0 100644 --- a/src/Factory/LoggerFactory.php +++ b/src/Factory/LoggerFactory.php @@ -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); -- 2.39.5