]> git.mxchange.org Git - simgear.git/commitdiff
Trying to debug HTTP timeouts
authorJames Turner <zakalawe@mac.com>
Tue, 22 Dec 2015 21:16:13 +0000 (15:16 -0600)
committerJames Turner <zakalawe@mac.com>
Fri, 1 Jan 2016 23:17:55 +0000 (17:17 -0600)
simgear/io/HTTPRequest.cxx
simgear/scene/tsync/terrasync.cxx

index 4ed18d6eb87d2277e4a69149594443ee265a3e79..3050cbf4e9594a693f0aeb18e797fdd6783fb04c 100644 (file)
@@ -325,6 +325,7 @@ unsigned int Request::responseLength() const
 //------------------------------------------------------------------------------
 void Request::setFailure(int code, const std::string& reason)
 {
+    SG_LOG(SG_IO, SG_WARN, "HTTP request: set failure:" << code << " reason " << reason);
   _responseStatus = code;
   _responseReason = reason;
 
index 68f059d4f0cc9a6ef8a12e345af2503963ca98ce..db306efca134d7b27f00699d95701a164d83ae22 100644 (file)
@@ -607,7 +607,7 @@ void SGTerraSync::SvnThread::updateSyncSlot(SyncSlot &slot)
 #if 1
             if (slot.stamp.elapsedMSec() > (int)slot.nextWarnTimeout) {
                 SG_LOG(SG_TERRAIN, SG_INFO, "sync taking a long time:" << slot.currentItem._dir << " taken " << slot.stamp.elapsedMSec());
-                SG_LOG(SG_TERRAIN, SG_INFO, "HTTP status:" << _http.hasActiveRequests());
+                SG_LOG(SG_TERRAIN, SG_INFO, "HTTP request count:" << _http.hasActiveRequests());
                 slot.nextWarnTimeout += 10000;
             }
 #endif