]> git.mxchange.org Git - simgear.git/commitdiff
Better reporting when an HTTP request fails.
authorJames Turner <zakalawe@mac.com>
Sun, 28 Jul 2013 20:06:17 +0000 (21:06 +0100)
committerJames Turner <zakalawe@mac.com>
Sun, 28 Jul 2013 20:06:17 +0000 (21:06 +0100)
simgear/io/HTTPRequest.cxx

index 23018d9c4a8a0500dafec404f6f2245e0da0894e..2f5289bcf154c2e4a5d15259d73705555ce08d78 100644 (file)
@@ -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)