diff options
author | Morris Jobke <hey@morrisjobke.de> | 2014-06-09 12:02:23 +0400 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2014-06-09 12:02:23 +0400 |
commit | 63c5c7bd21b29bbd7b196fb8db84b6b4e30f294a (patch) | |
tree | 70d4b37f83d127ba1d41c1b56be233d8628563d6 /lib/base.php | |
parent | e5c47a5e3022fa835644c2e9e2d24723b93cce7a (diff) |
set logger before registrate to an error handler
Diffstat (limited to 'lib/base.php')
-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 2e65e9f1601..5871ecba839 100644 --- a/lib/base.php +++ b/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 |