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:15:28 +0100 |
commit | 4f06d46d6d6062d6d17f69eeaddb7810edac5bbf (patch) | |
tree | 7a63833fe072d4d6fb18f0141c29a573a28a6ca9 /lib/jobs/basejob.cpp | |
parent | 90d41b697af39253483d9bcca4e57b11d2197112 (diff) | |
download | libquotient-4f06d46d6d6062d6d17f69eeaddb7810edac5bbf.tar.gz libquotient-4f06d46d6d6062d6d17f69eeaddb7810edac5bbf.zip |
BaseJob: more logging
Diffstat (limited to 'lib/jobs/basejob.cpp')
-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 135274d6..da66a9f2 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()); |