From: Claudio Cambra Date: Thu, 11 May 2023 12:58:54 +0000 (+0800) Subject: Increase logging around emission of putmultifilejobs X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~51^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=35b05fca85adb9427c531ba6e2d443953a176a0b;p=nextcloud-desktop.git Increase logging around emission of putmultifilejobs Signed-off-by: Claudio Cambra --- diff --git a/src/libsync/bulkpropagatorjob.cpp b/src/libsync/bulkpropagatorjob.cpp index 450d09e9c..d6e4fe9ef 100644 --- a/src/libsync/bulkpropagatorjob.cpp +++ b/src/libsync/bulkpropagatorjob.cpp @@ -93,6 +93,13 @@ bool BulkPropagatorJob::scheduleSelfOrChild() fileToUpload._file = currentItem->_file; fileToUpload._size = currentItem->_size; fileToUpload._path = propagator()->fullLocalPath(fileToUpload._file); + + qCDebug(lcBulkPropagatorJob) << "Scheduling bulk propagator job:" << this + << "and starting upload of item" + << "with file:" << fileToUpload._file + << "with size:" << fileToUpload._size + << "with path:" << fileToUpload._path; + startUploadFile(currentItem, fileToUpload); }); // We could be in a different thread (neon jobs) } @@ -491,6 +498,8 @@ void BulkPropagatorJob::finalizeOneFile(const BulkUploadItem &oneFile) void BulkPropagatorJob::finalize(const QJsonObject &fullReply) { + qCDebug(lcBulkPropagatorJob) << "Received a full reply" << fullReply; + for(auto singleFileIt = std::begin(_filesToUpload); singleFileIt != std::end(_filesToUpload); ) { const auto &singleFile = *singleFileIt; diff --git a/src/libsync/putmultifilejob.cpp b/src/libsync/putmultifilejob.cpp index 6ca81ef81..b1d942c8e 100644 --- a/src/libsync/putmultifilejob.cpp +++ b/src/libsync/putmultifilejob.cpp @@ -76,9 +76,9 @@ bool PutMultiFileJob::finished() } qCInfo(lcPutMultiFileJob) << "POST of" << reply()->request().url().toString() << path() << "FINISHED WITH STATUS" - << replyStatusString() - << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute) - << reply()->attribute(QNetworkRequest::HttpReasonPhraseAttribute); + << replyStatusString() + << reply()->attribute(QNetworkRequest::HttpStatusCodeAttribute) + << reply()->attribute(QNetworkRequest::HttpReasonPhraseAttribute); emit finishedSignal(); return true;