summaryrefslogtreecommitdiffstats
path: root/lib/private/Cache/File.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Cache/File.php')
-rw-r--r--lib/private/Cache/File.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php
index a96a7cd9c0b..8e192b22332 100644
--- a/lib/private/Cache/File.php
+++ b/lib/private/Cache/File.php
@@ -32,8 +32,8 @@ namespace OC\Cache;
use OC\Files\Filesystem;
use OC\Files\View;
use OCP\ICache;
-use OCP\ILogger;
use OCP\Security\ISecureRandom;
+use Psr\Log\LoggerInterface;
class File implements ICache {
@@ -61,7 +61,7 @@ class File implements ICache {
$this->storage = new View('/' . $user->getUID() . '/cache');
return $this->storage;
} else {
- \OCP\Util::writeLog('core', 'Can\'t get cache storage, user not logged in', ILogger::ERROR);
+ \OC::$server->get(LoggerInterface::class)->error('Can\'t get cache storage, user not logged in', ['app' => 'core']);
throw new \OC\ForbiddenException('Can\t get cache storage, user not logged in');
}
}