Logger - Forgot Logger::init() with VoidLogger

This commit is contained in:
Philipp Holzer 2019-03-02 14:40:59 +01:00 committed by Hypolite Petovan
parent c4a1fe5272
commit dd333c76f8

View 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);