From 2cc48a6ca6ec0cb7cbd16a339a821579cf72b929 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Mon, 18 Apr 2016 17:53:58 -0700 Subject: [PATCH] Add url to resource retry debug --- libraries/networking/src/ResourceCache.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libraries/networking/src/ResourceCache.cpp b/libraries/networking/src/ResourceCache.cpp index 68d9a61226..b6f482dbe7 100644 --- a/libraries/networking/src/ResourceCache.cpp +++ b/libraries/networking/src/ResourceCache.cpp @@ -606,8 +606,9 @@ void Resource::handleReplyFinished() { const int BASE_DELAY_MS = 1000; if (_attempts++ < MAX_ATTEMPTS) { auto waitTime = BASE_DELAY_MS * (int)pow(2.0, _attempts); - qCDebug(networking).nospace() << "Retrying to load the asset in " << waitTime - << "ms, attempt " << _attempts << " of " << MAX_ATTEMPTS; + qCDebug(networking) << "Server unavailable for" << _url << + "retrying in " << waitTime << "ms," << + "attempt " << _attempts + 1 << "of" << MAX_ATTEMPTS; QTimer::singleShot(waitTime, this, &Resource::attemptRequest); break; }