Don't cache errors/exceptions when debug is enabled
This commit is contained in:
parent
b169073169
commit
bcabdd7dd5
|
@ -424,7 +424,7 @@ class OC {
|
||||||
|
|
||||||
self::initPaths();
|
self::initPaths();
|
||||||
|
|
||||||
if (!defined('PHPUNIT_RUN')) {
|
if (!defined('PHPUNIT_RUN') and !(defined('DEBUG') and DEBUG)) {
|
||||||
register_shutdown_function(array('OC_Log', 'onShutdown'));
|
register_shutdown_function(array('OC_Log', 'onShutdown'));
|
||||||
set_error_handler(array('OC_Log', 'onError'));
|
set_error_handler(array('OC_Log', 'onError'));
|
||||||
set_exception_handler(array('OC_Log', 'onException'));
|
set_exception_handler(array('OC_Log', 'onException'));
|
||||||
|
|
Loading…
Reference in New Issue