Enhance syslog logging

This commit is contained in:
Philipp 2021-12-12 22:45:22 +01:00
parent 36329f9e7e
commit 2413627de9
No known key found for this signature in database
GPG key ID: 24A7501396EB5432
4 changed files with 18 additions and 2 deletions

View file

@ -119,7 +119,7 @@ class Logger
case 'syslog':
try {
$logger = new SyslogLogger($this->channel, $introspection, $loglevel);
$logger = new SyslogLogger($this->channel, $introspection, $loglevel, $config->get('system', 'syslog_flags', SyslogLogger::DEFAULT_FLAGS), $config->get('system', 'syslog_facility', SyslogLogger::DEFAULT_FACILITY));
} catch (LogLevelException $exception) {
// If there's a wrong config value for loglevel, try again with standard
$logger = $this->create($database, $config, $profiler, $fileSystem, LogLevel::NOTICE);