Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-06-09 12:02:23 +0400
committerMorris Jobke <hey@morrisjobke.de>2014-06-09 12:02:23 +0400
commit63c5c7bd21b29bbd7b196fb8db84b6b4e30f294a (patch)
tree70d4b37f83d127ba1d41c1b56be233d8628563d6 /lib/base.php
parente5c47a5e3022fa835644c2e9e2d24723b93cce7a (diff)
set logger before registrate to an error handler
Diffstat (limited to 'lib/base.php')
-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