Skip to content

Commit

Permalink
Increase logging around emission of putmultifilejobs
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed May 11, 2023
1 parent f230766 commit 548cfff
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions src/libsync/bulkpropagatorjob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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;

Expand Down
6 changes: 3 additions & 3 deletions src/libsync/putmultifilejob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 548cfff

Please sign in to comment.