Logger - Forgot Logger::init() with VoidLogger
This commit is contained in:
parent
c4a1fe5272
commit
dd333c76f8
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue