Improve error message for failing HTTP requests
authorphysikerwelt <wiki@physikerwelt.de>
Sat, 21 Nov 2015 17:05:17 +0000 (18:05 +0100)
committerPhysikerwelt <wiki@physikerwelt.de>
Sat, 21 Nov 2015 17:17:17 +0000 (17:17 +0000)
commit1c0004c10f85a0f2e32f4783ee7983a17a6eb00e
tree633be846a8ba6b94221df5aa4193af036000d6ed
parent7c45adb260ad7164f6f0f7824c63fb48870a8124
Improve error message for failing HTTP requests

Before this change, the information that is written
to the log for requests with a non 200 return status
is not very helpful. A variable $errors is created,
but never used.

This patch writes the $errors and the request body
to the log.

Change-Id: If62ec801d59b2343890f4238e5a534d034d934ad
includes/HttpFunctions.php