diff --git a/src/libsync/discovery.cpp b/src/libsync/discovery.cpp index 8e069279d92be..87088efde6a48 100644 --- a/src/libsync/discovery.cpp +++ b/src/libsync/discovery.cpp @@ -1615,12 +1615,13 @@ void ProcessDirectoryJob::processFileFinalize( } { + const auto discoveredItemLog = QStringLiteral("%1 %2 %3 %4").arg(item->_file).arg(item->_instruction).arg(item->_direction).arg(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; + qCInfo(lcDisco) << discoveredItemLog; } else { - qCDebug(lcDisco) << "Discovered" << item->_file << item->_instruction << item->_direction << item->_type; + qCDebug(lcDisco) << discoveredItemLog; } }