set logger before registrate to an error handler

remotes/origin/ldap_group_count
Morris Jobke 11 years ago
parent e5c47a5e30
commit 63c5c7bd21
  1. 2
      lib/base.php

@ -515,13 +515,13 @@ class OC {
}
if (!defined('PHPUNIT_RUN')) {
OC\Log\ErrorHandler::setLogger(OC_Log::$object);
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);
}
// register the stream wrappers

Loading…
Cancel
Save