dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf11d9d
)
Don't log HttpError
author
Tim Starling
<tstarling@wikimedia.org>
Tue, 15 May 2012 04:19:32 +0000
(14:19 +1000)
committer
Tim 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
patch
|
blob
|
history
diff --git
a/includes/Exception.php
b/includes/Exception.php
index
f7b6b96
..
a1e3f12
100644
(file)
--- a/
includes/Exception.php
+++ b/
includes/Exception.php
@@
-462,7
+462,7
@@
class HttpError extends MWException {
$this->content = $content;
}
- public function report
HTML
() {
+ public function report() {
$httpMessage = HttpStatus::getMessage( $this->httpCode );
header( "Status: {$this->httpCode} {$httpMessage}" );