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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benakamoorthi@fastmail.fm>2014-06-27 10:43:22 +0400
committerdiosmosis <benakamoorthi@fastmail.fm>2014-06-27 10:48:52 +0400
commite78509bc5f8dcee6ba5a1e36c0d494bcc0440ecb (patch)
treef89757d7a584e89831013d2f95ba15f074d86ff0 /core/FrontController.php
parent8f7d3fbf1c51b5c5a9972251af1eaee54ee0ce1a (diff)
Log caught exceptions to help with debugging.
Diffstat (limited to 'core/FrontController.php')
-rw-r--r--core/FrontController.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/FrontController.php b/core/FrontController.php
index c67d313337..7be6beda9d 100644
--- a/core/FrontController.php
+++ b/core/FrontController.php
@@ -14,6 +14,7 @@ use Piwik\API\Request;
use Piwik\API\ResponseBuilder;
use Piwik\Plugin\Controller;
use Piwik\Session;
+use Piwik\Log;
/**
* This singleton dispatches requests to the appropriate plugin Controller.
@@ -83,6 +84,7 @@ class FrontController extends Singleton
$result = $this->doDispatch($module, $action, $parameters);
return $result;
} catch (NoAccessException $exception) {
+ Log::debug($exception);
/**
* Triggered when a user with insufficient access permissions tries to view some resource.
@@ -173,6 +175,7 @@ class FrontController extends Singleton
Log::debug(Registry::get('timer'));
}
} catch (Exception $e) {
+ Log::verbose($e);
}
}
@@ -216,6 +219,7 @@ class FrontController extends Singleton
try {
Config::getInstance()->database; // access property to check if the local file exists
} catch (Exception $exception) {
+ Log::debug($exception);
/**
* Triggered when the configuration file cannot be found or read, which usually
@@ -287,6 +291,8 @@ class FrontController extends Singleton
throw $exception;
}
+ Log::debug($exception);
+
/**
* Triggered if the INI config file has the incorrect format or if certain required configuration
* options are absent.