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:
authormattpiwik <matthieu.aubry@gmail.com>2011-08-11 08:32:54 +0400
committermattpiwik <matthieu.aubry@gmail.com>2011-08-11 08:32:54 +0400
commit9662302690dbe122c4412e7ee1444397355ebe5b (patch)
tree4213d5603bb83cd5b83ad9023b22d51196ead99c /core/ExceptionHandler.php
parent766bfee661836a92d212b7168e213ad4af268d2e (diff)
Refs #2327
Archive.php improvements * Added strong errorhandling, handling sql/php/network errors from the script itself or returned from the http requests If there is a critical error during script exec, such as wrong token_auth or mysql shutdown, then the fatal error is throw, PHP error as well, and the script exits directly. If there was any non critical errors during execution, the script simply logs errors on screen. Then at the end, it logs them all again on screen for summary then exits (and triggers a PHP error to ensure we trigger cron error handling & email message) * Added summary error logs at end of script output + other improvements in the output metrics and messaging * Added flags (a different one for days and periods, one per website) to record a website archiving as succesful and not re-trigger the http request when not necessary. Flags are maintained via the piwik_option lookup table. * archive.php is now consistently using direct calls to some internal APIs (those that are not processing data) rather than calling over http git-svn-id: http://dev.piwik.org/svn/trunk@5095 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r--core/ExceptionHandler.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php
index 6df8c5ff6c..d530609c14 100644
--- a/core/ExceptionHandler.php
+++ b/core/ExceptionHandler.php
@@ -20,6 +20,12 @@ function Piwik_ExceptionHandler(Exception $exception)
try {
Zend_Registry::get('logger_exception')->logEvent($exception);
} catch(Exception $e) {
+
+ if(Piwik_FrontController::shouldRethrowException())
+ {
+ throw $exception;
+ }
+
// case when the exception is raised before the logger being ready
// we handle the exception a la mano, but using the Logger formatting properties
$event = array();