utility: ringlogging fix, delete when switching log files

This commit is contained in:
Andreas Stallinger
2016-02-26 12:31:38 +01:00
parent 47a0dd69a4
commit b3ac0532cc
4 changed files with 8 additions and 5 deletions
+1 -4
View File
@@ -82,10 +82,7 @@ void FileLogger::changeLogFile()
m_suffix = ++m_suffix % s_amountOfLogFiles;
m_currentLogFile = m_fileName + (m_suffix ? "1" : "0") + ".txt";
if (FileSystem::exists(m_currentLogFile))
{
std::remove(m_currentLogFile.c_str());
}
FileSystem::remove(s_filePath + m_currentLogFile);
}
void FileLogger::logMessage(const std::string& type, const LogMessage& message)