diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-05-06 21:26:37 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-05-06 22:37:39 +0900 |
commit | c1de050c143a79361e6b183bbfa84fc2fdaef959 (patch) | |
tree | 2b8a464f1c7cd37137db50f2cba03e1fa8cd5774 | |
parent | a3be7715910434cd8ef9d626b8c9c518e2d5fc40 (diff) | |
download | libquotient-c1de050c143a79361e6b183bbfa84fc2fdaef959.tar.gz libquotient-c1de050c143a79361e6b183bbfa84fc2fdaef959.zip |
Enhanced logging of job failures
-rw-r--r-- | jobs/basejob.cpp | 3 |
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; } |