Log: Improve log message [ info gui.folder ]: Folder sync result: 4...
authorHannah von Reth <hannah.vonreth@owncloud.com>
Fri, 3 Jul 2020 11:16:09 +0000 (13:16 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:15 +0000 (10:59 +0100)
by including the name of the folder and print the name of the result

src/gui/folder.cpp
src/libsync/syncresult.h

index 187377eab7fd7c8741ac507d0fb14bd472d2da8c..d437241bccf3e83cec4fcae91e4609ae3c24b231 100644 (file)
@@ -399,7 +399,7 @@ void Folder::showSyncResultPopup()
         createGuiLog(_syncResult.firstItemLocked()->_file, LogStatusFileLocked, lockedCount);
     }
 
-    qCInfo(lcFolder) << "Folder sync result: " << int(_syncResult.status());
+    qCInfo(lcFolder) << "Folder" << _syncResult.folder() << "sync result: " << _syncResult.status();
 }
 
 void Folder::createGuiLog(const QString &filename, LogStatus status, int count,
index a3079f8afebfe8130e7b3e1fc148f52709c4fb59..8a8f299fea79299738bb6529ba273c6bc49c9f9e 100644 (file)
@@ -30,6 +30,7 @@ namespace OCC {
  */
 class OWNCLOUDSYNC_EXPORT SyncResult
 {
+    Q_GADGET
 public:
     enum Status {
         Undefined,
@@ -43,6 +44,7 @@ public:
         SetupError,
         Paused
     };
+    Q_ENUM(Status);
 
     SyncResult();
     void reset();