From e2aa8b4978a3536d7286554086697361f6036df5 Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Tue, 15 May 2012 14:19:32 +1000 Subject: [PATCH] Don't log HttpError 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Exception.php b/includes/Exception.php index f7b6b964f6..a1e3f1256c 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -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}" ); -- 2.20.1