Logger - Forgot Logger::init() with VoidLogger

This commit is contained in:
Philipp Holzer 2019-03-02 14:40:59 +01:00
parent f377a0f6be
commit 5992c8ce8d
No known key found for this signature in database
GPG Key ID: 517BE60E2CE5C8A5
1 changed files with 3 additions and 1 deletions

View File

@ -32,7 +32,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;
}
switch ($config->get('system', 'logger_adapter', 'monolog')) {