- more tweaking of threaded logging as well as removal of world synch logging items that are not needed

This commit is contained in:
Mark Vejvoda
2010-12-26 01:13:04 +00:00
parent 36f62ea084
commit 409c15d3f0
2 changed files with 27 additions and 2 deletions

View File

@@ -206,6 +206,10 @@ void LogFileThread::addLogEntry(SystemFlags::DebugType type, string logEntry) {
entry.entry = logEntry;
entry.entryDateTime = time(NULL);
logList.push_back(entry);
if(logList.size() >= 100000) {
saveToDisk(false);
}
}
bool LogFileThread::checkSaveCurrentLogBufferToDisk() {