mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2025-02-02 04:11:23 +00:00
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:
parent
098c9cb194
commit
e5e163e6d5
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue