From 38a90130ce425d531a804dff591df4a883de3154 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 25 Apr 2018 15:22:28 +0200 Subject: move log constants to ILogger Signed-off-by: Arthur Schiwon --- lib/private/Cache/File.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/private/Cache/File.php') diff --git a/lib/private/Cache/File.php b/lib/private/Cache/File.php index ab51b54b8c8..7d2d468ec2f 100644 --- a/lib/private/Cache/File.php +++ b/lib/private/Cache/File.php @@ -30,6 +30,7 @@ namespace OC\Cache; use OC\Files\Filesystem; use OC\Files\View; use OCP\ICache; +use OCP\ILogger; use OCP\Security\ISecureRandom; class File implements ICache { @@ -58,7 +59,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', \OCP\Util::ERROR); + \OCP\Util::writeLog('core', 'Can\'t get cache storage, user not logged in', ILogger::ERROR); throw new \OC\ForbiddenException('Can\t get cache storage, user not logged in'); } } -- cgit v1.2.3