Open log in append mode so that new entries are written at the end.

There is no locking on the Log file so conflicting updater processes
may corrupt each others' entries - although in practice this has not
been a problem yet.
This commit is contained in:
Robert Knight 2011-08-26 11:54:14 +01:00
parent 098c9cb194
commit e5e163e6d5

View file

@ -51,7 +51,7 @@ Log::~Log()
void Log::open(const std::string& path)
{
m_output.open(path.c_str());
m_output.open(path.c_str(),std::ios_base::out | std::ios_base::app);
}
void Log::writeToStream(std::ostream& stream, Type type, const char* text)