From c50136d675adcdb40f9f3eb097cca721cb5b73dc Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 16 May 2017 17:42:57 +0200 Subject: [PATCH] Add the account name and folder when starting the sync 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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/gui/folderman.cpp b/src/gui/folderman.cpp index b1d5d3a92..6c9fd71cf 100644 --- a/src/gui/folderman.cpp +++ b/src/gui/folderman.cpp @@ -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; -- 2.39.5