From: Philipp Holzer Date: Sun, 17 Mar 2019 09:04:16 +0000 (+0100) Subject: Fix Legacy LogLevel mapping X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fab01ed0d3944a50c34955300bd6b4a9baf5d2d2;p=friendica.git Fix Legacy LogLevel mapping --- diff --git a/src/Factory/LoggerFactory.php b/src/Factory/LoggerFactory.php index 7bb4e3215d..cf7888cabb 100644 --- a/src/Factory/LoggerFactory.php +++ b/src/Factory/LoggerFactory.php @@ -57,6 +57,7 @@ class LoggerFactory $introspection = new Introspection(self::$ignoreClassList); $level = $config->get('system', 'loglevel'); + $loglevel = self::mapLegacyConfigDebugLevel((string)$level); switch ($config->get('system', 'logger_config', 'stream')) { case 'monolog': @@ -71,18 +72,17 @@ class LoggerFactory $stream = $config->get('system', 'logfile'); - $loglevel = self::mapLegacyConfigDebugLevel((string)$level); static::addStreamHandler($logger, $stream, $loglevel); break; case 'syslog': - $logger = new SyslogLogger($channel, $introspection, $level); + $logger = new SyslogLogger($channel, $introspection, $loglevel); break; case 'stream': default: $stream = $config->get('system', 'logfile'); - $logger = new StreamLogger($channel, $stream, $introspection, $level); + $logger = new StreamLogger($channel, $stream, $introspection, $loglevel); break; }