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
This commit is contained in:
Hannah von Reth 2020-07-03 13:16:09 +02:00 committed by Kevin Ottens
parent fb34f8ea85
commit c9ee0a0343
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2
2 changed files with 3 additions and 1 deletions

View 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,

View 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();