Log errors in Http::request()
authorGergő Tisza <tgr.huwiki@gmail.com>
Wed, 8 Jul 2015 07:39:52 +0000 (07:39 +0000)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 28 Jul 2015 22:24:00 +0000 (22:24 +0000)
commit64446397925576210c50baedc77becb470df84e2
tree8c162802682005cdc82b6cde4d2721ad51ac1836
parent699e817ca43109e540e8d7a80e3903737d560818
Log errors in Http::request()

Instead of silently discarding errors in server-side HTTP requests,
log them to a 'http' channel.

Make ForeignAPIFile::httpGet() (which sort of reimplements Http::get())
log to the same channel, for consistency.

Bug: T103043
Change-Id: Ibf552e22adc7fde4a751f92e92dad6ceba2f335c
includes/HttpFunctions.php
includes/filerepo/ForeignAPIRepo.php