aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-05-06 21:26:37 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-05-06 22:37:39 +0900
commitc1de050c143a79361e6b183bbfa84fc2fdaef959 (patch)
tree2b8a464f1c7cd37137db50f2cba03e1fa8cd5774
parenta3be7715910434cd8ef9d626b8c9c518e2d5fc40 (diff)
downloadlibquotient-c1de050c143a79361e6b183bbfa84fc2fdaef959.tar.gz
libquotient-c1de050c143a79361e6b183bbfa84fc2fdaef959.zip
Enhanced logging of job failures
-rw-r--r--jobs/basejob.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp
index bcfd5875..cfdf8a28 100644
--- a/jobs/basejob.cpp
+++ b/jobs/basejob.cpp
@@ -121,6 +121,7 @@ void BaseJob::fail(int errorCode, QString errorString)
setErrorText( errorString );
if( d->reply->isRunning() )
d->reply->abort();
+ qWarning() << this << "failed:" << errorString;
emitResult();
}
@@ -138,7 +139,7 @@ void BaseJob::gotReply()
{
if( d->reply->error() != QNetworkReply::NoError )
{
- qDebug() << "NetworkError!!!" << d->reply->error();
+ qDebug() << "NetworkError:" << d->reply->error();
fail( NetworkError, d->reply->errorString() );
return;
}