summaryrefslogtreecommitdiffstats
path: root/core/ajax
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-07-03 14:06:40 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-07-03 18:00:16 +0200
commitd3ac73c0c9419750c65d3ccb8f0b0c25edacf34f (patch)
tree6517676c49da188ae4ee832245236fe0e1e25cf3 /core/ajax
parent68fd74963eda73fe0e3173cde495c284ea1fd8f4 (diff)
downloadnextcloud-server-d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f.tar.gz
nextcloud-server-d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f.zip
Remove OC_Log
Diffstat (limited to 'core/ajax')
-rw-r--r--core/ajax/preview.php4
-rw-r--r--core/ajax/update.php3
2 files changed, 4 insertions, 3 deletions
diff --git a/core/ajax/preview.php b/core/ajax/preview.php
index c5714396409..fc98d80eb0e 100644
--- a/core/ajax/preview.php
+++ b/core/ajax/preview.php
@@ -35,14 +35,14 @@ $always = array_key_exists('forceIcon', $_GET) ? (bool)$_GET['forceIcon'] : true
if ($file === '') {
//400 Bad Request
\OC_Response::setStatus(400);
- \OC_Log::write('core-preview', 'No file parameter was passed', \OC_Log::DEBUG);
+ \OCP\Util::writeLog('core-preview', 'No file parameter was passed', \OCP\Util::DEBUG);
exit;
}
if ($maxX === 0 || $maxY === 0) {
//400 Bad Request
\OC_Response::setStatus(400);
- \OC_Log::write('core-preview', 'x and/or y set to 0', \OC_Log::DEBUG);
+ \OCP\Util::writeLog('core-preview', 'x and/or y set to 0', \OCP\Util::DEBUG);
exit;
}
diff --git a/core/ajax/update.php b/core/ajax/update.php
index 2f34708faea..a4c7951d836 100644
--- a/core/ajax/update.php
+++ b/core/ajax/update.php
@@ -37,10 +37,11 @@ if (OC::checkUpgrade(false)) {
$l = new \OC_L10N('core');
$eventSource = \OC::$server->createEventSource();
+ $logger = \OC::$server->getLogger();
$updater = new \OC\Updater(
\OC::$server->getHTTPHelper(),
\OC::$server->getConfig(),
- \OC_Log::$object
+ $logger
);
$incompatibleApps = [];
$disabledThirdPartyApps = [];