forked from leftypol/leftypol
context.php: fix log init
This commit is contained in:
parent
6132084b4b
commit
fe4813867b
1 changed files with 2 additions and 2 deletions
|
@ -40,9 +40,9 @@ function build_context(array $config): Context {
|
|||
|
||||
// Check 'syslog' for backwards compatibility.
|
||||
if ((isset($config['syslog']) && $config['syslog']) || $backend === 'syslog') {
|
||||
return new SyslogLogDriver($name, $level, $this->config['log_system']['syslog_stderr']);
|
||||
return new SyslogLogDriver($name, $level, $config['log_system']['syslog_stderr']);
|
||||
} elseif ($backend === 'file') {
|
||||
return new FileLogDriver($name, $level, $this->config['log_system']['file_path']);
|
||||
return new FileLogDriver($name, $level, $config['log_system']['file_path']);
|
||||
} elseif ($backend === 'stderr') {
|
||||
return new StderrLogDriver($name, $level);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue