mirror of
https://github.com/friendica/friendica
synced 2024-11-19 18:23:41 +00:00
Fix Legacy LogLevel mapping
This commit is contained in:
parent
c5cbba3416
commit
fab01ed0d3
1 changed files with 3 additions and 3 deletions
|
@ -57,6 +57,7 @@ class LoggerFactory
|
||||||
|
|
||||||
$introspection = new Introspection(self::$ignoreClassList);
|
$introspection = new Introspection(self::$ignoreClassList);
|
||||||
$level = $config->get('system', 'loglevel');
|
$level = $config->get('system', 'loglevel');
|
||||||
|
$loglevel = self::mapLegacyConfigDebugLevel((string)$level);
|
||||||
|
|
||||||
switch ($config->get('system', 'logger_config', 'stream')) {
|
switch ($config->get('system', 'logger_config', 'stream')) {
|
||||||
case 'monolog':
|
case 'monolog':
|
||||||
|
@ -71,18 +72,17 @@ class LoggerFactory
|
||||||
|
|
||||||
$stream = $config->get('system', 'logfile');
|
$stream = $config->get('system', 'logfile');
|
||||||
|
|
||||||
$loglevel = self::mapLegacyConfigDebugLevel((string)$level);
|
|
||||||
static::addStreamHandler($logger, $stream, $loglevel);
|
static::addStreamHandler($logger, $stream, $loglevel);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'syslog':
|
case 'syslog':
|
||||||
$logger = new SyslogLogger($channel, $introspection, $level);
|
$logger = new SyslogLogger($channel, $introspection, $loglevel);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'stream':
|
case 'stream':
|
||||||
default:
|
default:
|
||||||
$stream = $config->get('system', 'logfile');
|
$stream = $config->get('system', 'logfile');
|
||||||
$logger = new StreamLogger($channel, $stream, $introspection, $level);
|
$logger = new StreamLogger($channel, $stream, $introspection, $loglevel);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue