From d4f28b2a518bcba9d06db43c82badf593670cd5d Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 10 Oct 2024 10:04:51 +0200 Subject: [PATCH 1/3] remove not so usefull log output Signed-off-by: Matthieu Gallien --- src/libsync/owncloudpropagator.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index d382840e5556d..c8b85657bb0c8 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -1521,7 +1521,6 @@ void PropagateDirectory::slotSubJobsFinished(SyncFileItem::Status status) } } _state = Finished; - qCInfo(lcPropagator) << "PropagateDirectory::slotSubJobsFinished" << "emit finished" << status << _item->_file; emit finished(status); } From 3835d377ff5eab8613c6a11714e5c30fa04a714d Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 10 Oct 2024 10:36:16 +0200 Subject: [PATCH 2/3] remove info level output from activity list model: not so usefull they just are printed when everything is working fine Signed-off-by: Matthieu Gallien --- src/gui/tray/activitylistmodel.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/gui/tray/activitylistmodel.cpp b/src/gui/tray/activitylistmodel.cpp index 03422c5f9fef8..f2fc26ba1e18a 100644 --- a/src/gui/tray/activitylistmodel.cpp +++ b/src/gui/tray/activitylistmodel.cpp @@ -656,14 +656,8 @@ void ActivityListModel::removeActivityFromActivityList(int row) void ActivityListModel::removeActivityFromActivityList(const Activity &activity) { - qCInfo(lcActivity) << "Activity/Notification/Error successfully dismissed: " << activity._subject; - qCInfo(lcActivity) << "Trying to remove Activity/Notification/Error from view... "; - const auto index = _finalList.indexOf(activity); if (index != -1) { - qCInfo(lcActivity) << "Activity/Notification/Error successfully removed from the list."; - qCInfo(lcActivity) << "Updating Activity/Notification/Error view."; - beginRemoveRows({}, index, index); _finalList.removeAt(index); endRemoveRows(); From 6c5c7c27d2a0e69bbf7a7d20b4ef2f00dee7ab78 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Thu, 10 Oct 2024 10:38:00 +0200 Subject: [PATCH 3/3] improve log when too many deleted files are detected Signed-off-by: Matthieu Gallien --- src/libsync/syncengine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/syncengine.cpp b/src/libsync/syncengine.cpp index 58aad760b65f0..f53e438680497 100644 --- a/src/libsync/syncengine.cpp +++ b/src/libsync/syncengine.cpp @@ -1119,7 +1119,7 @@ bool SyncEngine::handleMassDeletion() const auto filesDeletedThresholdExceeded = deletionCounter > ConfigFile().deleteFilesThreshold(); if ((allFilesDeleted || filesDeletedThresholdExceeded) && displayDialog) { - qCInfo(lcEngine) << "All the files are going to be changed, asking the user"; + qCWarning(lcEngine) << "Many files are going to be deleted, asking the user"; int side = 0; // > 0 means more deleted on the server. < 0 means more deleted on the client for (const auto &it : qAsConst(_syncItems)) { if (it->_instruction == CSYNC_INSTRUCTION_REMOVE) {