Logger: flush to file after each log entry in release.

This commit is contained in:
Guillaume Jacquemin 2024-07-12 15:06:02 +02:00
parent e9a356fa21
commit 90a67f30d9
Signed by: williamjcm
SSH key fingerprint: SHA256:AYLOg+iTV0ElElnlu4vqM4edFazVdRiuQB0Y5LoKc4A

View file

@ -92,6 +92,10 @@ Logger::log(EntryType type, StringView location, StringView message) {
} }
d << ((message.back() == '\n') ? message.exceptSuffix(1) : message); d << ((message.back() == '\n') ? message.exceptSuffix(1) : message);
#ifndef SAVETOOL_DEBUG_BUILD
_logFile.flush();
#endif
} }
void void