Increase logging around emission of putmultifilejobs

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-05-11 20:58:54 +08:00
parent 811a4036cb
commit 35b05fca85
2 changed files with 12 additions and 3 deletions

View file

@ -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;

View file

@ -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;