Better reporting when an HTTP request fails.
This commit is contained in:
parent
a284107249
commit
f52c0026dd
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user