Added more logs to 'postProcessLocalNew'.
authoralex-z <blackslayer4@gmail.com>
Tue, 2 Nov 2021 14:21:06 +0000 (16:21 +0200)
committerMatthieu Gallien (Rebase PR Action) <matthieu_gallien@yahoo.fr>
Fri, 19 Nov 2021 09:10:20 +0000 (09:10 +0000)
Signed-off-by: alex-z <blackslayer4@gmail.com>
src/libsync/discovery.cpp

index ee0ce489cd53bff715d1e8beee334aa10a580198..d8b894d0f4909a5981f86b92a41e7e2bc66bdf00 100644 (file)
@@ -1043,6 +1043,12 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo(
         if (isOnlineOnlyFolder) {
             // if we're wiping a folder, we will only get this function called once and will wipe a folder along with it's files and also display one error in GUI
             qCInfo(lcDisco) << "Wiping virtual folder without db entry for" << path._local;
+            if (isfolderPlaceHolderAvailabilityOnlineOnly && folderPlaceHolderAvailability.isValid()) {
+                qCInfo(lcDisco) << "*folderPlaceHolderAvailability:" << *folderPlaceHolderAvailability;
+            }
+            if (isFolderPinStateOnlineOnly && folderPinState.isValid()) {
+                qCInfo(lcDisco) << "*folderPinState:" << *folderPinState;
+            }
             emit _discoveryData->addErrorToGui(SyncFileItem::SoftError, tr("Conflict when uploading a folder. It's going to get cleared!"), path._local);
         } else {
             qCInfo(lcDisco) << "Wiping virtual file without db entry for" << path._local;