dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
cd42bfb
)
Merge "Improve error message for failing HTTP requests"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 3 Dec 2015 00:28:48 +0000
(
00:28
+0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 3 Dec 2015 00:28:48 +0000
(
00:28
+0000)
includes/HttpFunctions.php
patch
|
blob
|
history
diff --git
a/includes/HttpFunctions.php
b/includes/HttpFunctions.php
index
60196ab
..
e6801e3
100644
(file)
--- a/
includes/HttpFunctions.php
+++ b/
includes/HttpFunctions.php
@@
-80,7
+80,8
@@
class Http {
} else {
$errors = $status->getErrorsByType( 'error' );
$logger = LoggerFactory::getInstance( 'http' );
- $logger->warning( $status->getWikiText(), array( 'caller' => $caller ) );
+ $logger->warning( $status->getWikiText(),
+ array( 'error' => $errors, 'caller' => $caller, 'content' => $req->getContent() ) );
return false;
}
}