Better reporting when an HTTP request fails.

This commit is contained in:
James Turner 2013-07-28 21:06:17 +01:00
parent a284107249
commit f52c0026dd

View File

@ -210,7 +210,8 @@ void Request::setFailure(int code, const std::string& reason)
void Request::failed() void Request::failed()
{ {
// no-op in base class // 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) Request::HTTPVersion Request::decodeVersion(const string& v)