Logger: flush to file after each log entry in release.
This commit is contained in:
parent
e9a356fa21
commit
90a67f30d9
1 changed files with 4 additions and 0 deletions
|
@ -92,6 +92,10 @@ Logger::log(EntryType type, StringView location, StringView message) {
|
|||
}
|
||||
|
||||
d << ((message.back() == '\n') ? message.exceptSuffix(1) : message);
|
||||
|
||||
#ifndef SAVETOOL_DEBUG_BUILD
|
||||
_logFile.flush();
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue