Index: sources/storage/Logger.cpp =================================================================== diff -u -rec7f919fdb70ff29a8de627937e4ad7008e59c1c -r86e9dfbff50cb7e16fd94c16c1c818cef3b47eac --- sources/storage/Logger.cpp (.../Logger.cpp) (revision ec7f919fdb70ff29a8de627937e4ad7008e59c1c) +++ sources/storage/Logger.cpp (.../Logger.cpp) (revision 86e9dfbff50cb7e16fd94c16c1c818cef3b47eac) @@ -331,6 +331,7 @@ */ bool Logger::exportLogs() { + // qDebug() << " ~~~~~~~~~~ " << QThread::currentThread()->objectName(); int result = 0; static QString mOSource; QString mDestination = USB_Mount_Point; @@ -401,10 +402,11 @@ mOExtension = mCExtension; // Remove Logs mLogFileFilter = QString("*%1").arg(mCExtension); - /// DEBUG: since it has been manually tested this will help next time for test. - /// qDebug() << "@" << mCSource << mLogFileFilter << mCExtension << iType << _logTypeMaxUsageLimit[iType]; + // DEBUG: since it has been manually tested this will help next time for test. + // qDebug() << "@" << mCSource << mLogFileFilter << mCExtension << iType << _logTypeMaxUsageLimit[iType]; QFileInfoList fileInfoList = FileHandler::find(mCSource, {mLogFileFilter}, _logTypeMaxUsageLimit[iType]); removeCount = fileInfoList.count(); + // qDebug() << "@" << removeCount << fileInfoList; if (removeCount) { LOG_DEBUG(QString("Removing %1 logs of type (%2) more than %3% limit from folder %4") .arg(removeCount) @@ -417,8 +419,8 @@ } else { QString mFileName = mCSource + info.fileName(); - /// DEBUG: since it has been manually tested this will help next time for test. - /// qDebug() << "#" << mFileName; + // DEBUG: since it has been manually tested this will help next time for test. + // qDebug() << "#" << mFileName; bool ok = QFile::remove(mFileName); if (ok) { LOG_DEBUG(QString("Removing %1 succeeded").arg(mFileName));