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:
authorrobocoder <anthon.pang@gmail.com>2009-06-24 00:45:44 +0400
committerrobocoder <anthon.pang@gmail.com>2009-06-24 00:45:44 +0400
commitb3da4d8bcf7c29993835d2a47e855e8c0f5f53be (patch)
treed5a0a6d79ccdd6f0a5b779f9960a8b4d2f58dc8a /core/ExceptionHandler.php
parent440c9a4dc816ebcf0635a59f01017991488a9db6 (diff)
fixes #821 - rename the log() method in subclasses of Piwik_Log because
PHP (by design) isn't intended to support overloading to the extent of other OOP languages (i.e., "multiple methods with the same name but different quantities and types of arguments") ref: http://ca.php.net/manual/en/language.oop5.overloading.php this change arises because PHP 5.2.10 escalated the log message priority for incompatible method declarations git-svn-id: http://dev.piwik.org/svn/trunk@1249 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/ExceptionHandler.php')
-rw-r--r--core/ExceptionHandler.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/ExceptionHandler.php b/core/ExceptionHandler.php
index a979f0580a..f0b7f60fe6 100644
--- a/core/ExceptionHandler.php
+++ b/core/ExceptionHandler.php
@@ -17,7 +17,7 @@
function Piwik_ExceptionHandler(Exception $exception)
{
try {
- Zend_Registry::get('logger_exception')->log($exception);
+ Zend_Registry::get('logger_exception')->log_exception($exception);
} catch(Exception $e) {
// case when the exception is raised before the logger being ready
// we handle the exception a la mano, but using the Logger formatting properties
@@ -27,7 +27,7 @@ function Piwik_ExceptionHandler(Exception $exception)
$event['errfile'] = $exception->getFile();
$event['errline'] = $exception->getLine();
$event['backtrace'] = $exception->getTraceAsString();
-
+
$formatter = new Piwik_Log_Exception_Formatter_ScreenFormatter;
$message = $formatter->format($event);