From: Jocelyn Turcotte Date: Tue, 16 May 2017 15:42:57 +0000 (+0200) Subject: Add the account name and folder when starting the sync X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~723 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c50136d675adcdb40f9f3eb097cca721cb5b73dc;p=nextcloud-desktop.git 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 --- 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;