diff options
author | robocoder <anthon.pang@gmail.com> | 2009-06-24 00:45:44 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2009-06-24 00:45:44 +0400 |
commit | b3da4d8bcf7c29993835d2a47e855e8c0f5f53be (patch) | |
tree | d5a0a6d79ccdd6f0a5b779f9960a8b4d2f58dc8a /core/ExceptionHandler.php | |
parent | 440c9a4dc816ebcf0635a59f01017991488a9db6 (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.php | 4 |
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); |