Index: sources/storage/logger.cpp =================================================================== diff -u -rbf645acccabb7b5a84801620c4f7fa0b0e6878e0 -red5d989264015440d9da6d0830679394a323cf55 --- sources/storage/logger.cpp (.../logger.cpp) (revision bf645acccabb7b5a84801620c4f7fa0b0e6878e0) +++ sources/storage/logger.cpp (.../logger.cpp) (revision ed5d989264015440d9da6d0830679394a323cf55) @@ -165,7 +165,7 @@ void Logger::checkLogPath() { setLogBasePath(); // try to use /media/sd_card on device - // coco begin validated: It can only happen if the file system is readonly for any reson. + // coco begin validated: It can only happen if the file system is readonly for any reason. // it has been tested and works perfectly fine in normal run. if (! setLogPath()) { // check and create log folders & if unsuccessful then // coco end @@ -221,7 +221,7 @@ bool ok = false; switch (vLogType) { case LogType::eLogDebug: - _logPathNames[vLogType] = qApp->applicationDirPath() + "/" + _logBasePathNames[vLogType]; + _logPathNames[vLogType] = _dir.path() + "/" + _logBasePathNames[vLogType]; break; default: @@ -352,7 +352,7 @@ countRemoved += FileHandler::removeFiles({ mCSource }, mLogFileFilter, mOlderThan); } else { - LOG_DEBUG("Current day logs cannot be deletet"); + LOG_DEBUG("Current day logs cannot be deleted"); } } }