mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-25 05:45:42 +03:00
Increase logging around emission of putmultifilejobs
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
811a4036cb
commit
35b05fca85
2 changed files with 12 additions and 3 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue