From a60e34cd827b32012b713f2a5d4629d246e22dd3 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Tue, 3 Jun 2025 15:44:22 +0200 Subject: [PATCH] perf(logs): do not print processing lines for not important instructions Signed-off-by: Matthieu Gallien --- src/libsync/discovery.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 19f4a576be..d49140b285 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -584,8 +584,6 @@ void ProcessDirectoryJob::processFile(PathTuple path, << " | live photo: " << dbEntry._isLivePhoto << "//" << serverEntry.isLivePhoto << " | metadata missing: /" << localEntry.isMetadataMissing << '/'; - qCInfo(lcDisco).nospace() << processingLog; - if (_discoveryData->isRenamed(path._original)) { qCDebug(lcDisco) << "Ignoring renamed"; return; // Ignore this. @@ -1827,11 +1825,12 @@ void ProcessDirectoryJob::processFileFinalize( } { - const auto isImportantInstruction = item->_instruction != CSYNC_INSTRUCTION_NONE && item->_instruction != CSYNC_INSTRUCTION_IGNORE - && item->_instruction != CSYNC_INSTRUCTION_UPDATE_METADATA; + const auto isImportantInstruction = item->_instruction != CSYNC_INSTRUCTION_NONE; if (isImportantInstruction) { + qCInfo(lcDisco).noquote() << item->_discoveryResult; qCInfo(lcDisco) << "discovered" << item->_file << item->_instruction << item->_direction << item->_type; } else { + qCDebug(lcDisco).noquote() << item->_discoveryResult; qCDebug(lcDisco) << "discovered" << item->_file << item->_instruction << item->_direction << item->_type; } }