Skip to content
Snippets Groups Projects
Commit bcabdd7d authored by Robin Appelman's avatar Robin Appelman
Browse files

Don't cache errors/exceptions when debug is enabled

parent b1690731
Branches
No related tags found
No related merge requests found
......@@ -424,7 +424,7 @@ class OC {
self::initPaths();
if (!defined('PHPUNIT_RUN')) {
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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment