From: Hannah von Reth Date: Fri, 3 Jul 2020 11:16:09 +0000 (+0200) Subject: Log: Improve log message [ info gui.folder ]: Folder sync result: 4... X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~87 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c9ee0a03431038355d195051156b50fcae7658f5;p=nextcloud-desktop.git Log: Improve log message [ info gui.folder ]: Folder sync result: 4... by including the name of the folder and print the name of the result --- diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp index 187377eab..d437241bc 100644 --- a/src/gui/folder.cpp +++ b/src/gui/folder.cpp @@ -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, diff --git a/src/libsync/syncresult.h b/src/libsync/syncresult.h index a3079f8af..8a8f299fe 100644 --- a/src/libsync/syncresult.h +++ b/src/libsync/syncresult.h @@ -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();