From bcabdd7dd56fd11f5afd5f486955627a657c2072 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 15 Feb 2013 03:09:33 +0100 Subject: [PATCH] Don't cache errors/exceptions when debug is enabled --- lib/base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base.php b/lib/base.php index 2fa288a6eb..ba77d0a618 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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'));