summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2013-07-05 19:28:10 +0200
committerBart Visscher <bartv@thisnet.nl>2013-07-05 19:28:10 +0200
commit2db839c4d36a9c6157e2da6606f6fff1bea2eab0 (patch)
treed6c51a6c99bcc3b8da5a3c9d5d638b8b2c3391ed /lib/base.php
parent9c855f7b3d97b312095ba53a08fe45b71ca06c98 (diff)
downloadnextcloud-server-2db839c4d36a9c6157e2da6606f6fff1bea2eab0.tar.gz
nextcloud-server-2db839c4d36a9c6157e2da6606f6fff1bea2eab0.zip
Move error handlers from OC_Log to OC\Log\ErrorHandler
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/base.php b/lib/base.php
index af54f439155..033af32f1ac 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -433,9 +433,8 @@ class OC {
}
if (!defined('PHPUNIT_RUN') and !(defined('DEBUG') and DEBUG)) {
- register_shutdown_function(array('OC_Log', 'onShutdown'));
- set_error_handler(array('OC_Log', 'onError'));
- set_exception_handler(array('OC_Log', 'onException'));
+ OC\Log\ErrorHandler::register();
+ OC\Log\ErrorHandler::setLogger(OC_Log::$object);
}
// register the stream wrappers