mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Propagator: More debug output for downloads/uploads
This commit is contained in:
parent
48dac23b0f
commit
f01b7bb5db
2 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue