diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-07 12:32:07 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2019-01-07 12:32:07 +0100 |
commit | 8e914c01c52250fd99e16d9216b83944629cf206 (patch) | |
tree | 6a4a5efeeb223777f9cdbbe5e5675e3b948a9d57 /lib/private/Server.php | |
parent | b820803cf1def6a6bfe398d1564dd0d9a3a3a9e0 (diff) | |
download | nextcloud-server-8e914c01c52250fd99e16d9216b83944629cf206.tar.gz nextcloud-server-8e914c01c52250fd99e16d9216b83944629cf206.zip |
Use the real logger in the settings
Fixes #13285
The wrapper logger should not be used here. But we need the real logger.
Since this in internal we can just pass that on directly.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Server.php')
-rw-r--r-- | lib/private/Server.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Server.php b/lib/private/Server.php index 8ae2cb7652c..03d115fe022 100644 --- a/lib/private/Server.php +++ b/lib/private/Server.php @@ -553,7 +553,7 @@ class Server extends ServerContainer implements IServerContainer { $this->registerAlias(\OCP\Support\CrashReport\IRegistry::class, \OC\Support\CrashReport\Registry::class); - $this->registerService(\OCP\ILogger::class, function (Server $c) { + $this->registerService(\OC\Log::class, function (Server $c) { $logType = $c->query('AllConfig')->getSystemValue('log_type', 'file'); $factory = new LogFactory($c, $this->getSystemConfig()); $logger = $factory->get($logType); @@ -561,7 +561,8 @@ class Server extends ServerContainer implements IServerContainer { return new Log($logger, $this->getSystemConfig(), null, $registry); }); - $this->registerAlias('Logger', \OCP\ILogger::class); + $this->registerAlias(\OCP\ILogger::class, \OC\Log::class); + $this->registerAlias('Logger', \OC\Log::class); $this->registerService(ILogFactory::class, function (Server $c) { return new LogFactory($c, $this->getSystemConfig()); |