Compare commits

2 Commits

Author SHA1 Message Date
6926b6a7c9 Always flush log file on close to prevent incomplete logs 2022-01-10 23:27:06 -08:00
9420e3007e Update fmt to 8.0.1 2021-10-25 19:08:48 -04:00
2 changed files with 2 additions and 1 deletions

2
fmt

Submodule fmt updated: 9e8b86fd2d...d141cdbeb0

View File

@@ -760,6 +760,7 @@ struct FileLogger : public ILogger {
} }
virtual void closeFile() { virtual void closeFile() {
if (fp) { if (fp) {
std::fflush(fp);
std::fclose(fp); std::fclose(fp);
fp = nullptr; fp = nullptr;
} }