diff options
Diffstat (limited to 'core/Log/Exception.php')
-rw-r--r-- | core/Log/Exception.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Log/Exception.php b/core/Log/Exception.php index fe3e6ef98e..6ae10b64cd 100644 --- a/core/Log/Exception.php +++ b/core/Log/Exception.php @@ -52,7 +52,7 @@ class Piwik_Log_Exception extends Piwik_Log $event['errline'] = $exception->getLine(); $event['backtrace'] = $exception->getTraceAsString(); - parent::log($event, Piwik_Log::CRIT, null); + parent::log($event, Piwik_Log::CRIT); } } @@ -80,7 +80,7 @@ class Piwik_Log_Exception_Formatter_ScreenFormatter extends Piwik_Log_Formatter_ $backtrace = $event['backtrace'] ; $outputFormat = strtolower(Piwik_Common::getRequestVar('format', 'html', 'string')); - $response = new Piwik_API_ResponseBuilder($outputFormat); + $response = new Piwik_API_ResponseBuilder(null, $outputFormat); $message = $response->getResponseException(new Exception($errstr)); return parent::format($message); } |