Skip to content

Commit 205091c

Browse files
committed
fix(logs): reduce log level for detected file system changes
work around our inability to handle deleted items inside a folder that sync engine is removing Signed-off-by: Matthieu Gallien <[email protected]>
1 parent ec8c858 commit 205091c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/gui/folder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ void Folder::slotWatchedPathChanged(const QStringView &path, const ChangeReason
646646
qCDebug(lcFolder) << "Changed path was touched by SyncEngine, ignoring:" << path;
647647
return;
648648
} else {
649-
qCInfo(lcFolder) << "Detected changes in paths:" << path;
649+
qCDebug(lcFolder) << "Detected changes in paths:" << path;
650650
}
651651
#endif
652652

src/libsync/propagatorjobs.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
5656

5757
qCInfo(lcPropagateLocalRemove()) << "delete" << absolute;
5858

59+
Q_EMIT propagator()->touchedFile(absolute);
60+
5961
const auto success = FileSystem::removeRecursively(absolute,
6062
[&deleted](const QString &path, bool isDir) {
6163
// by prepending, a folder deletion may be followed by content deletions
@@ -66,7 +68,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
6668
[this] (const QString &itemPath, QString *removeError) -> bool {
6769
auto result = false;
6870

69-
Q_EMIT propagator()->touchedFile(itemPath);
71+
// Q_EMIT propagator()->touchedFile(itemPath);
7072
if (_deleteToClientTrashBin.contains(itemPath)) {
7173
result = FileSystem::moveToTrash(itemPath, removeError);
7274
if (!result) {

0 commit comments

Comments
 (0)