diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-03-29 22:25:26 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-04-26 16:50:47 +0200 |
commit | 51f04ed5144d4c111970aa976f0ce58ae23e079d (patch) | |
tree | 356b46805a8baddddc077a871b3bc629ac85a8d8 /lib/private/Cache | |
parent | dffbddcca6fa0221b8f2ac138732cf01154a5187 (diff) | |
download | nextcloud-server-51f04ed5144d4c111970aa976f0ce58ae23e079d.tar.gz nextcloud-server-51f04ed5144d4c111970aa976f0ce58ae23e079d.zip |
Move away from deprecated ILogger
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Cache')
-rw-r--r-- | lib/private/Cache/File.php | 4 |
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'); } } |