mirror of https://github.com/friendica/friendica
Logger - Forgot Logger::init() with VoidLogger
This commit is contained in:
parent
f377a0f6be
commit
5992c8ce8d
|
@ -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')) {
|
||||
|
|
Loading…
Reference in New Issue