aboutsummaryrefslogtreecommitdiff
path: root/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-22 14:04:26 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-22 14:04:26 +0900
commit15feb65dbb17161ccfbda614e0635f2698beacd7 (patch)
treea25ed3e763ba7e1f22736f0e92784fafd8405124 /jobs
parentd51e7a43736096eb2776acd99e1aab6deeb65667 (diff)
downloadlibquotient-15feb65dbb17161ccfbda614e0635f2698beacd7.tar.gz
libquotient-15feb65dbb17161ccfbda614e0635f2698beacd7.zip
BaseJob: Log the sent request more nicely
Diffstat (limited to 'jobs')
-rw-r--r--jobs/basejob.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index 6b2ebc58..ea1a7158 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -159,8 +159,9 @@ void BaseJob::start()
{
emit aboutToStart();
d->retryTimer.stop(); // In case we were counting down at the moment
- qCDebug(d->logCat) << this << "sending request to"
- << d->apiEndpoint % '?' % d->requestQuery.toString();
+ qCDebug(d->logCat) << this << "sending request to" << d->apiEndpoint;
+ if (!d->requestQuery.isEmpty())
+ qCDebug(d->logCat) << " query:" << d->requestQuery.toString();
d->sendRequest();
connect( d->reply.data(), &QNetworkReply::sslErrors, this, &BaseJob::sslErrors );
connect( d->reply.data(), &QNetworkReply::finished, this, &BaseJob::gotReply );