diff options
author | blizzz <blizzz@arthur-schiwon.de> | 2019-08-14 09:46:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-14 09:46:48 +0200 |
commit | 2ac01c0203ad5d7698175ec82c358cd62f1e5dc8 (patch) | |
tree | fcbe7b009d33d84322ccf55e649bf013035ce92d /lib/private | |
parent | d60bd936410c7b022dfc2b95a30c0276dc8dfdb3 (diff) | |
parent | 2efb9a7d90f0464826cbbc1cc39aa96d485dbf88 (diff) | |
download | nextcloud-server-2ac01c0203ad5d7698175ec82c358cd62f1e5dc8.tar.gz nextcloud-server-2ac01c0203ad5d7698175ec82c358cd62f1e5dc8.zip |
Merge pull request #16725 from nextcloud/bugfix/noid/syslog-di
Fix loading of the syslog logging class
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/Log/Syslog.php | 2 | ||||
-rw-r--r-- | lib/private/Server.php | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Log/Syslog.php b/lib/private/Log/Syslog.php index b8fba34d62b..fc536fbd7fc 100644 --- a/lib/private/Log/Syslog.php +++ b/lib/private/Log/Syslog.php @@ -40,7 +40,7 @@ class Syslog extends LogDetails implements IWriter { public function __construct(SystemConfig $config) { parent::__construct($config); - openlog($config->getSystemValue('syslog_tag', 'Nextcloud'), LOG_PID | LOG_CONS, LOG_USER); + openlog($config->getValue('syslog_tag', 'Nextcloud'), LOG_PID | LOG_CONS, LOG_USER); } public function __destruct() { diff --git a/lib/private/Server.php b/lib/private/Server.php index c25808a9ccc..f919e0b4efb 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -449,9 +449,10 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias('AllConfig', \OC\AllConfig::class); $this->registerAlias(\OCP\IConfig::class, \OC\AllConfig::class); - $this->registerService('SystemConfig', function ($c) use ($config) { + $this->registerService(\OC\SystemConfig::class, function ($c) use ($config) { return new \OC\SystemConfig($config); }); + $this->registerAlias('SystemConfig', \OC\SystemConfig::class); $this->registerService(\OC\AppConfig::class, function (Server $c) { return new \OC\AppConfig($c->getDatabaseConnection()); |