aboutsummaryrefslogtreecommitdiffstats
path: root/lib/base.php
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 /lib/base.php
parent68fd74963eda73fe0e3173cde495c284ea1fd8f4 (diff)
downloadnextcloud-server-d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f.tar.gz
nextcloud-server-d3ac73c0c9419750c65d3ccb8f0b0c25edacf34f.zip
Remove OC_Log
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php
index 8812d5698f1..1766fc38f89 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -572,7 +572,8 @@ class OC {
OC_Util::isSetLocaleWorking();
if (!defined('PHPUNIT_RUN')) {
- OC\Log\ErrorHandler::setLogger(OC_Log::$object);
+ $logger = \OC::$server->getLogger();
+ OC\Log\ErrorHandler::setLogger($logger);
if (defined('DEBUG') and DEBUG) {
OC\Log\ErrorHandler::register(true);
set_exception_handler(array('OC_Template', 'printExceptionErrorPage'));
@@ -1029,7 +1030,7 @@ class OC {
}
if (defined("DEBUG") && DEBUG) {
- OC_Log::write('core', 'Trying to login from cookie', OC_Log::DEBUG);
+ \OCP\Util::writeLog('core', 'Trying to login from cookie', \OCP\Util::DEBUG);
}
if(OC_User::userExists($_COOKIE['oc_username'])) {
@@ -1041,8 +1042,8 @@ class OC {
OC_Util::redirectToDefaultPage();
// doesn't return
}
- OC_Log::write('core', 'Authentication cookie rejected for user ' .
- $_COOKIE['oc_username'], OC_Log::WARN);
+ \OCP\Util::writeLog('core', 'Authentication cookie rejected for user ' .
+ $_COOKIE['oc_username'], \OCP\Util::WARN);
// if you reach this point you have changed your password
// or you are an attacker
// we can not delete tokens here because users may reach