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:
Diffstat (limited to 'modules/ExceptionHandler.php')
-rw-r--r--modules/ExceptionHandler.php14
1 files changed, 9 insertions, 5 deletions
diff --git a/modules/ExceptionHandler.php b/modules/ExceptionHandler.php
index e4258f3cdf..f6fd67e0f1 100644
--- a/modules/ExceptionHandler.php
+++ b/modules/ExceptionHandler.php
@@ -1,9 +1,13 @@
<?php
-function Piwik_ExceptionHandler(Exception $exception) {
- echo "<b><div style='font-size:11pt'><pre>Uncaught exception: " , $exception->getMessage(), "\n";
- print( $exception->__toString() );
- echo "</b>";
- exit;
+function Piwik_ExceptionHandler(Exception $exception)
+{
+ try {
+ Zend_Registry::get('logger_exception')->log($exception);
+ } catch(Exception $e) {
+ print("<br> -------------------------- <br>An exception occured while dealing with an uncaught exception... <br>");
+ print("'" . $e->getMessage()."'");
+ print("<br> The initial exception was: <br>'". $exception->getMessage()."'");
+ }
}
?>