Mention the folder we listed in the debug logs
authorKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 20 Oct 2020 14:36:10 +0000 (16:36 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Wed, 21 Oct 2020 08:00:58 +0000 (10:00 +0200)
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
src/libsync/clientsideencryption.cpp

index b1966955273ecfe50c7db7f87f4463b5388df847..13f3b791503016b26b9cfa5bc54662976689273d 100644 (file)
@@ -1263,13 +1263,14 @@ void ClientSideEncryption::folderEncryptedStatusFetched(const QHash<QString, boo
 
     _folderStatusJobs.removeAll(job);
 
+    qCDebug(lcCse) << "Retrieved correctly the encrypted status of the folders for" << job->folder() << result;
+
     // FIXME: Can be replaced by _folder2encryptedStatus.insert(result); once we depend on Qt 5.15
     for (auto it = result.constKeyValueBegin(); it != result.constKeyValueEnd(); ++it) {
         _folder2encryptedStatus.insert((*it).first, (*it).second);
     }
 
     _refreshingEncryptionStatus = false;
-    qCDebug(lcCse) << "Retrieved correctly the encrypted status of the folders." << result;
     emit folderEncryptedStatusFetchDone(_folder2encryptedStatus);
 }
 
@@ -1278,10 +1279,11 @@ void ClientSideEncryption::folderEncryptedStatusError(int error)
     auto job = static_cast<GetFolderEncryptStatusJob *>(sender());
     Q_ASSERT(job);
 
+    qCDebug(lcCse) << "Failed to retrieve the status of the folders for" << job->folder() << error;
+
     _folderStatusJobs.removeAll(job);
 
     _refreshingEncryptionStatus = false;
-    qCDebug(lcCse) << "Failed to retrieve the status of the folders." << error;
     emit folderEncryptedStatusFetchDone(_folder2encryptedStatus);
 }