mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Merge pull request #7723 from zzmp/log/retry-url
Add url to resource retry debug log
This commit is contained in:
commit
aaf1fdb71c
1 changed files with 3 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue