Propagator: More debug output for downloads/uploads

This commit is contained in:
Markus Goetz 2015-07-30 14:27:54 +02:00
parent 48dac23b0f
commit f01b7bb5db
2 changed files with 6 additions and 1 deletions

View file

@ -286,6 +286,7 @@ void GETFileJob::slotReadyRead()
void GETFileJob::slotTimeout() void GETFileJob::slotTimeout()
{ {
qDebug() << "Timeout" << reply()->request().url();
_errorString = tr("Connection Timeout"); _errorString = tr("Connection Timeout");
_errorStatus = SyncFileItem::FatalError; _errorStatus = SyncFileItem::FatalError;
reply()->abort(); reply()->abort();
@ -402,7 +403,10 @@ void PropagateDownloadFileQNAM::slotGetFinished()
qDebug() << Q_FUNC_INFO << job->reply()->request().url() << "FINISHED WITH STATUS" qDebug() << Q_FUNC_INFO << job->reply()->request().url() << "FINISHED WITH STATUS"
<< job->reply()->error() << job->reply()->error()
<< (job->reply()->error() == QNetworkReply::NoError ? QLatin1String("") : job->reply()->errorString()); << (job->reply()->error() == QNetworkReply::NoError ? QLatin1String("") : job->reply()->errorString())
<< _item->_httpErrorCode
<< _tmpFile.size() << _item->_size << job->resumeStart()
<< job->reply()->rawHeader("Content-Range") << job->reply()->rawHeader("Content-Length");
QNetworkReply::NetworkError err = job->reply()->error(); QNetworkReply::NetworkError err = job->reply()->error();
if (err != QNetworkReply::NoError) { if (err != QNetworkReply::NoError) {

View file

@ -110,6 +110,7 @@ void PUTFileJob::start() {
} }
void PUTFileJob::slotTimeout() { void PUTFileJob::slotTimeout() {
qDebug() << "Timeout" << reply()->request().url();
_errorString = tr("Connection Timeout"); _errorString = tr("Connection Timeout");
reply()->abort(); reply()->abort();
} }