From: Matthieu Gallien Date: Fri, 9 Jun 2023 16:58:50 +0000 (+0200) Subject: fully hide some logs from release builds X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=53d5bbee8a787703c1e15b97a3a52d1a7f9150cc;p=nextcloud-desktop.git fully hide some logs from release builds Signed-off-by: Matthieu Gallien --- diff --git a/src/csync/csync_exclude.cpp b/src/csync/csync_exclude.cpp index bddb3047e..9efe50df3 100644 --- a/src/csync/csync_exclude.cpp +++ b/src/csync/csync_exclude.cpp @@ -442,7 +442,9 @@ CSYNC_EXCLUDE_TYPE ExcludedFiles::traversalPatternMatch(const QString &path, Ite addExcludeFilePath(absolutePath); reloadExcludeFiles(); } else { +#if !defined QT_NO_DEBUG qWarning() << "System exclude list file could not be read:" << absolutePath; +#endif } } diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 81e180934..2ed343bc1 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -952,7 +952,9 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( // Not modified locally (ParentNotChanged) if (noServerEntry) { // not on the server: Removed on the server, delete locally +#if !defined QT_NO_DEBUG qCInfo(lcDisco) << "File" << item->_file << "is not anymore on server. Going to delete it locally."; +#endif item->_instruction = CSYNC_INSTRUCTION_REMOVE; item->_direction = SyncFileItem::Down; } else if (dbEntry._type == ItemTypeVirtualFileDehydration) { @@ -980,7 +982,9 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( } else if (!serverModified) { // Removed locally: also remove on the server. if (!dbEntry._serverHasIgnoredFiles) { +#if !defined QT_NO_DEBUG qCInfo(lcDisco) << "File" << item->_file << "was deleted locally. Going to delete it on the server."; +#endif item->_instruction = CSYNC_INSTRUCTION_REMOVE; item->_direction = SyncFileItem::Up; } @@ -1019,7 +1023,9 @@ void ProcessDirectoryJob::processFileAnalyzeLocalInfo( } else if (!typeChange && ((dbEntry._modtime == localEntry.modtime && dbEntry._fileSize == localEntry.size) || localEntry.isDirectory)) { // Local file unchanged. if (noServerEntry) { +#if !defined QT_NO_DEBUG qCInfo(lcDisco) << "File" << item->_file << "is not anymore on server. Going to delete it locally."; +#endif item->_instruction = CSYNC_INSTRUCTION_REMOVE; item->_direction = SyncFileItem::Down; } else if (dbEntry._type == ItemTypeVirtualFileDehydration || localEntry.type == ItemTypeVirtualFileDehydration) {