From: James Turner Date: Sun, 28 Jul 2013 20:06:17 +0000 (+0100) Subject: Better reporting when an HTTP request fails. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f52c0026dde92af36d957c2b0348a4c099c6b3ea;p=simgear.git Better reporting when an HTTP request fails. --- diff --git a/simgear/io/HTTPRequest.cxx b/simgear/io/HTTPRequest.cxx index 23018d9c..2f5289bc 100644 --- a/simgear/io/HTTPRequest.cxx +++ b/simgear/io/HTTPRequest.cxx @@ -210,7 +210,8 @@ void Request::setFailure(int code, const std::string& reason) void Request::failed() { // no-op in base class - SG_LOG(SG_IO, SG_INFO, "request failed:" << url()); + SG_LOG(SG_IO, SG_INFO, "request failed:" << url() << " : " + << responseCode() << "/" << responseReason()); } Request::HTTPVersion Request::decodeVersion(const string& v)