diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-07-05 19:28:10 +0200 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-07-05 19:28:10 +0200 |
commit | 2db839c4d36a9c6157e2da6606f6fff1bea2eab0 (patch) | |
tree | d6c51a6c99bcc3b8da5a3c9d5d638b8b2c3391ed /lib/base.php | |
parent | 9c855f7b3d97b312095ba53a08fe45b71ca06c98 (diff) | |
download | nextcloud-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.php | 5 |
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 |