summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy/db.php
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/legacy/db.php
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/legacy/db.php')
-rw-r--r--lib/private/legacy/db.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/legacy/db.php b/lib/private/legacy/db.php
index 7c556baeaeb..7e18cbe1875 100644
--- a/lib/private/legacy/db.php
+++ b/lib/private/legacy/db.php
@@ -28,6 +28,8 @@
*
*/
+use OCP\ILogger;
+
/**
* This class manages the access to the database. It basically is a wrapper for
* Doctrine with some adaptions.
@@ -185,7 +187,7 @@ class OC_DB {
try {
$result = $schemaManager->updateDbFromStructure($file);
} catch (Exception $e) {
- \OCP\Util::writeLog('core', 'Failed to update database structure ('.$e.')', \OCP\Util::FATAL);
+ \OCP\Util::writeLog('core', 'Failed to update database structure ('.$e.')', ILogger::FATAL);
throw $e;
}
return $result;