From 8bbf6b68d3d6385f29f748b8ce969ef5f78414fa Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 28 Jun 2022 14:42:40 +0200 Subject: [PATCH] improve logs of OwncloudPropagator::localFileNameClash no need to print a line each time we check for a name clash always print a line when a clash is detected Signed-off-by: Matthieu Gallien --- src/libsync/owncloudpropagator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index 889c0dce0..245a8e8d6 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -682,7 +682,6 @@ bool OwncloudPropagator::localFileNameClash(const QString &relFile) Q_ASSERT(!file.isEmpty()); if (!file.isEmpty() && Utility::fsCasePreserving()) { - qCDebug(lcPropagator) << "CaseClashCheck for " << file; #ifdef Q_OS_MAC const QFileInfo fileInfo(file); if (!fileInfo.exists()) { @@ -718,6 +717,7 @@ bool OwncloudPropagator::localFileNameClash(const QString &relFile) const QString fn = fileInfo.fileName(); const QStringList list = fileInfo.dir().entryList({ fn }); if (list.count() > 1 || (list.count() == 1 && list[0] != fn)) { + qCWarning(lcPropagator) << "Detected case clash between" << file << "and" << list.constFirst(); return true; } #endif -- 2.30.2