diff options
Diffstat (limited to 'lib/private/Log/LogFactory.php')
-rw-r--r-- | lib/private/Log/LogFactory.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Log/LogFactory.php b/lib/private/Log/LogFactory.php index 807ff501e39..2fdadc3bdb2 100644 --- a/lib/private/Log/LogFactory.php +++ b/lib/private/Log/LogFactory.php @@ -49,7 +49,7 @@ class LogFactory implements ILogFactory { public function get(string $type):IWriter { switch (strtolower($type)) { case 'errorlog': - return new Errorlog(); + return new Errorlog($this->systemConfig); case 'syslog': return $this->c->resolve(Syslog::class); case 'systemd': @@ -73,7 +73,7 @@ class LogFactory implements ILogFactory { protected function createNewLogger(string $type, string $tag, string $path): IWriter { switch (strtolower($type)) { case 'errorlog': - return new Errorlog($tag); + return new Errorlog($this->systemConfig, $tag); case 'syslog': return new Syslog($this->systemConfig, $tag); case 'systemd': |