Index: sources/device/DeviceController.cpp =================================================================== diff -u -r7cb380b7f488f16a999f6ecdad53b9e43c096ebc -rdc6755ccc492f1440e39486c7b86e5767aa32dee --- sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision 7cb380b7f488f16a999f6ecdad53b9e43c096ebc) +++ sources/device/DeviceController.cpp (.../DeviceController.cpp) (revision dc6755ccc492f1440e39486c7b86e5767aa32dee) @@ -1003,9 +1003,10 @@ if ( gLogCompress ) { ok = FileHandler::backupFile(fileSrc); } - logTally(QString(), fileDest); - ok = QFile::rename(fileSrc + gzipSufx, fileDest + gzipSufx); - LOG_DEBUG(QString("Penging Log: %1, %2").arg(fileSrc, fileDest)); + QString fileDestGz = fileDest + gzipSufx; + logTally(QString(), fileDestGz); + ok = QFile::rename(fileSrc + gzipSufx, fileDestGz); + LOG_DEBUG(QString("Pending Log: %1, %2").arg(fileSrc, fileDestGz)); // Now the serial received and the system is logging in the log with the serial number, // therefore it is not bootPOST. @@ -1018,7 +1019,9 @@ if ( gLogCompress ) { ok = FileHandler::backupFile(fileSrc); } - ok = QFile::rename(fileSrc + gzipSufx, fileDest + gzipSufx); + QString fileDestGz = fileDest + gzipSufx; + logTally(QString(), fileDestGz); + ok = QFile::rename(fileSrc + gzipSufx, fileDestGz); } lOut: @@ -1078,12 +1081,12 @@ quint8 tally = 0; do { //do while used incase no c*. exists - tFileDest = (tally == 0) ? vFileDest.arg("") : vFileDest.arg(tally); + tFileDest = ((tally == 0) ? vFileDest.arg("") : vFileDest.arg(tally)); ++tally; +// LOG_DEBUG(QString("Tally: %1, %2, %3, %4").arg(tally).arg(vFilePath,vFileDest,tFileDest)); } while (QFile::exists(vFilePath + tFileDest)); vFileDest = tFileDest; - LOG_DEBUG(QString("Tally: %1, %2, %3, %4").arg(vFilePath, vFileDest, tFileDest, tally)); // qDebug() << __FUNCTION__ << "\n" << vFilePath << "\n" << vFileDest; return tally;