summaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-25 15:22:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2018-04-26 10:45:52 +0200
commit38a90130ce425d531a804dff591df4a883de3154 (patch)
treed579e7442832672ab2987f9c9ecf62e79ca09a8d /lib/private/User
parent12c5db90322f61d4d48e1bb534bb94382d17e317 (diff)
downloadnextcloud-server-38a90130ce425d531a804dff591df4a883de3154.tar.gz
nextcloud-server-38a90130ce425d531a804dff591df4a883de3154.zip
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/Database.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index 001e0c0f4a5..b2c54cd7c7e 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -59,6 +59,7 @@ namespace OC\User;
use OC\Cache\CappedMemoryCache;
use OCP\IDBConnection;
+use OCP\ILogger;
use OCP\User\Backend\ABackend;
use OCP\User\Backend\ICheckPasswordBackend;
use OCP\User\Backend\ICountUsersBackend;
@@ -408,7 +409,7 @@ class Database extends ABackend
$query = \OC_DB::prepare('SELECT COUNT(*) FROM `*PREFIX*users`');
$result = $query->execute();
if ($result === false) {
- Util::writeLog('core', \OC_DB::getErrorMessage(), Util::ERROR);
+ Util::writeLog('core', \OC_DB::getErrorMessage(), ILogger::ERROR);
return false;
}
return $result->fetchOne();