summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/base.php2
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