diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-02-15 03:09:33 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-02-15 03:14:41 +0100 |
commit | bcabdd7dd56fd11f5afd5f486955627a657c2072 (patch) | |
tree | 05a939e912272e6999e233db3f574d5a0228ab9e /lib | |
parent | b169073169ff7fc723ccbb1c0edd61556af8cd4e (diff) | |
download | nextcloud-server-bcabdd7dd56fd11f5afd5f486955627a657c2072.tar.gz nextcloud-server-bcabdd7dd56fd11f5afd5f486955627a657c2072.zip |
Don't cache errors/exceptions when debug is enabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index 2fa288a6ebb..ba77d0a6189 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')); |