diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2021-01-07 21:15:28 +0100 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2021-01-07 21:23:59 +0100 |
commit | 32794f67621f87fa796c423a900385e6a1fba4b9 (patch) | |
tree | d9adbde9440bead661d0228bff9c42839e4d3488 | |
parent | 8fc5de0529458851a4cd5c042b2b2f2543068c22 (diff) | |
download | libquotient-32794f67621f87fa796c423a900385e6a1fba4b9.tar.gz libquotient-32794f67621f87fa796c423a900385e6a1fba4b9.zip |
BaseJob: more logging
(cherry picked from commit 4f06d46d6d6062d6d17f69eeaddb7810edac5bbf)
-rw-r--r-- | lib/jobs/basejob.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index d37f05bc..0c030d48 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -199,6 +199,7 @@ BaseJob::BaseJob(HttpVerb verb, const QString& name, const QString& endpoint, setObjectName(name); connect(&d->timer, &QTimer::timeout, this, &BaseJob::timeout); connect(&d->retryTimer, &QTimer::timeout, this, [this] { + qCDebug(d->logCat) << "Retrying" << this; d->connection->submit(this); }); } @@ -374,8 +375,11 @@ void BaseJob::initiate(ConnectionData* connData, bool inBackground) void BaseJob::sendRequest() { - if (status().code == Abandoned) + if (status().code == Abandoned) { + qCDebug(d->logCat) << "Won't proceed with the abandoned request:" + << d->dumpRequest(); return; + } Q_ASSERT(d->connection && status().code == Pending); qCDebug(d->logCat).noquote() << "Making" << d->dumpRequest(); d->needsToken |= d->connection->needsToken(objectName()); |