Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/ajax
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-25 16:22:28 +0300
committerMorris Jobke <hey@morrisjobke.de>2018-04-26 11:45:52 +0300
commit38a90130ce425d531a804dff591df4a883de3154 (patch)
treed579e7442832672ab2987f9c9ecf62e79ca09a8d /core/ajax
parent12c5db90322f61d4d48e1bb534bb94382d17e317 (diff)
move log constants to ILogger
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/update.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 22be2a4f60e..6ec6b71731d 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -28,6 +28,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/
+
+use OCP\ILogger;
use Symfony\Component\EventDispatcher\GenericEvent;
if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
@@ -208,7 +210,7 @@ if (\OCP\Util::needUpgrade()) {
$updater->upgrade();
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e, [
- 'level' => \OCP\Util::ERROR,
+ 'level' => ILogger::ERROR,
'app' => 'update',
]);
$eventSource->send('failure', get_class($e) . ': ' . $e->getMessage());