Don't log HttpError
authorTim Starling <tstarling@wikimedia.org>
Tue, 15 May 2012 04:19:32 +0000 (14:19 +1000)
committerTim Starling <tstarling@wikimedia.org>
Tue, 15 May 2012 05:04:40 +0000 (15:04 +1000)
Fix for r97314: don't log HttpError exceptions to the exception log channel. Do
this by overriding MWException::report() rather than
MWException::reportHTML(), same as every other child class in
Exception.php.

Change-Id: I3fb2b0ca9b0e7c67c210078d1fd90e1430be39df

includes/Exception.php

index f7b6b96..a1e3f12 100644 (file)
@@ -462,7 +462,7 @@ class HttpError extends MWException {
                $this->content = $content;
        }
 
-       public function reportHTML() {
+       public function report() {
                $httpMessage = HttpStatus::getMessage( $this->httpCode );
 
                header( "Status: {$this->httpCode} {$httpMessage}" );