diff options
author | Matthieu Gallien <matthieu.gallien@nextcloud.com> | 2022-06-28 15:42:40 +0300 |
---|---|---|
committer | Matthieu Gallien <matthieu_gallien@yahoo.fr> | 2022-07-19 17:33:25 +0300 |
commit | 0b15dc10b9cc1b2e68702677652d8693ae41458a (patch) | |
tree | 9f14fe8295d62cd81d9dfebdd08f9df890d24bf9 | |
parent | 671132e9927f05606510b8337ecbf58b607fdf72 (diff) |
improve logs of OwncloudPropagator::localFileNameClashbugfix/improveLogs
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 <matthieu.gallien@nextcloud.com>
-rw-r--r-- | src/libsync/owncloudpropagator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 |