From 84e183a70b831d1e18c373099988420f5050254b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Thu, 25 Jan 2018 11:11:50 +0900 Subject: BaseJob::checkReply: log job returned status more explicitly --- jobs/basejob.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp index 720ac560..2d0d8b1b 100644 --- a/jobs/basejob.cpp +++ b/jobs/basejob.cpp @@ -291,9 +291,10 @@ bool checkContentType(const QByteArray& type, const QByteArrayList& patterns) BaseJob::Status BaseJob::checkReply(QNetworkReply* reply) const { - qCDebug(d->logCat) << this << "returned from" << reply->url().toDisplayString(); - if (reply->error() != QNetworkReply::NoError) - qCDebug(d->logCat) << this << "returned" << reply->error(); + qCDebug(d->logCat) << this << "returned" + << (reply->error() == QNetworkReply::NoError ? + "Success" : reply->errorString()) + << "from" << reply->url().toDisplayString(); switch( reply->error() ) { case QNetworkReply::NoError: -- cgit v1.2.3