diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-01-31 13:27:51 +0100 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-02-03 12:08:28 +0100 |
commit | cf5277b558e1838a1b8126621cb8cd5a0ca60cb4 (patch) | |
tree | 79ee688b4de4c80a809b938033b9c733979adc16 /lib/base.php | |
parent | 44b637470c57f098d328bc6d298be9385d3f30c4 (diff) | |
download | nextcloud-server-cf5277b558e1838a1b8126621cb8cd5a0ca60cb4.tar.gz nextcloud-server-cf5277b558e1838a1b8126621cb8cd5a0ca60cb4.zip |
also load error handler if debugging is enabled
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php index af78b4e4eb1..b54b2973551 100644 --- a/lib/base.php +++ b/lib/base.php @@ -504,11 +504,12 @@ class OC { if (!defined('PHPUNIT_RUN')) { if (defined('DEBUG') and DEBUG) { + OC\Log\ErrorHandler::register(true); set_exception_handler(array('OC_Template', 'printExceptionErrorPage')); } else { OC\Log\ErrorHandler::register(); - OC\Log\ErrorHandler::setLogger(OC_Log::$object); } + OC\Log\ErrorHandler::setLogger(OC_Log::$object); } // register the stream wrappers |