Index: sources/storage/Logger.cpp =================================================================== diff -u -rc2ed4667b513c51c5ee31566c15d2cf5a042ed61 -ra76eeb1808fb6012897a86d2d7f318dda85773b4 --- sources/storage/Logger.cpp (.../Logger.cpp) (revision c2ed4667b513c51c5ee31566c15d2cf5a042ed61) +++ sources/storage/Logger.cpp (.../Logger.cpp) (revision a76eeb1808fb6012897a86d2d7f318dda85773b4) @@ -497,14 +497,17 @@ // has been tested manually LOG_DEBUG(tr("Initializing log clean up")); int removeCount = 0; - auto logTypes = { eLogAppED , eLogDebug , eLogCloud , eLogTrtmt }; - auto logType = { vLogType }; + auto logFiles = { eLogAppED , eLogDebug , eLogCloud }; + auto logFile = { vLogType }; // Is mostly used for the txr files which are in separate partition. - for ( const auto &iType : ( vLogType == eLogAll ? logTypes : logType ) ) { + for ( const auto &iType : ( vLogType == eLogFiles ? logFiles : logFile ) ) { QString mCSource = _logPathNames [iType]; QString mCExtension = _logFileNameExt[iType]; // DEBUG: qDebug() << "@" << mCSource << mLogFileFilter << mCExtension << iType << _logTypeMaxUsageLimit[iType]; - QFileInfoList fileInfoList = FileHandler::find(mCSource, {"*.*"}, _logTypeMaxUsageLimit[iType]); + QFileInfoList fileInfoList = FileHandler::find( + mCSource , // where to look + {"*.*"} , // what to delete // it means the removal will be for all the files in that location and won't look at the mCExtension + _logTypeMaxUsageLimit[iType]); // how many/much removeCount = fileInfoList.count(); // qDebug() << "@" << removeCount << fileInfoList; if (removeCount) {