From a6dadb3dd8efa0ad58c31d364ec608edff0aac28 Mon Sep 17 00:00:00 2001 From: alex-z Date: Tue, 3 Oct 2023 17:16:42 +0200 Subject: [PATCH] Unhide discovery logs for file deleted on the server and for discovered file. Signed-off-by: alex-z --- src/libsync/discovery.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 64190b6082382..8e069279d92be 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1023,9 +1023,7 @@ 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) { @@ -1616,7 +1614,15 @@ void ProcessDirectoryJob::processFileFinalize( item->_direction = _dirItem->_direction; } - qCDebug(lcDisco) << "Discovered" << item->_file << item->_instruction << item->_direction << item->_type; + { + const auto isImportantInstruction = item->_instruction != CSYNC_INSTRUCTION_NONE && item->_instruction != CSYNC_INSTRUCTION_IGNORE + && item->_instruction != CSYNC_INSTRUCTION_UPDATE_METADATA; + if (isImportantInstruction) { + qCInfo(lcDisco) << "Discovered" << item->_file << item->_instruction << item->_direction << item->_type; + } else { + qCDebug(lcDisco) << "Discovered" << item->_file << item->_instruction << item->_direction << item->_type; + } + } if (item->isDirectory() && item->_instruction == CSYNC_INSTRUCTION_SYNC) item->_instruction = CSYNC_INSTRUCTION_UPDATE_METADATA;