Add the account name and folder when starting the sync
authorJocelyn Turcotte <jturcotte@woboq.com>
Tue, 16 May 2017 15:42:57 +0000 (17:42 +0200)
committerJocelyn Turcotte <jturcotte@woboq.com>
Wed, 17 May 2017 10:39:59 +0000 (12:39 +0200)
This should help clearly delimiting them in the log for multi-account setups.
This information is already available elsewhere in the log in any case.

Issue #5672

src/gui/folderman.cpp

index b1d5d3a92e8354b0ebc92a23c5cc15e6e0312ef4..6c9fd71cfca8e52b052723f0c8cbc222ee3d9c77 100644 (file)
@@ -867,7 +867,10 @@ void FolderMan::slotScheduleFolderByTime()
 
 void FolderMan::slotFolderSyncStarted()
 {
-    qCInfo(lcFolderMan) << ">===================================== sync started for " << _currentSyncFolder->remoteUrl().toString();
+    qCInfo(lcFolderMan, ">========== Sync started for folder [%s] of account [%s] with remote [%s]",
+        qPrintable(_currentSyncFolder->shortGuiLocalPath()),
+        qPrintable(_currentSyncFolder->accountState()->account()->displayName()),
+        qPrintable(_currentSyncFolder->remoteUrl().toString()));
 }
 
 /*
@@ -878,7 +881,10 @@ void FolderMan::slotFolderSyncStarted()
   */
 void FolderMan::slotFolderSyncFinished(const SyncResult &)
 {
-    qCInfo(lcFolderMan) << "<===================================== sync finished for " << _currentSyncFolder->remoteUrl().toString();
+    qCInfo(lcFolderMan, "<========== Sync finished for folder [%s] of account [%s] with remote [%s]",
+        qPrintable(_currentSyncFolder->shortGuiLocalPath()),
+        qPrintable(_currentSyncFolder->accountState()->account()->displayName()),
+        qPrintable(_currentSyncFolder->remoteUrl().toString()));
 
     _lastSyncFolder = _currentSyncFolder;
     _currentSyncFolder = 0;