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
1 changed files with 3 additions and 1 deletions

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