diff --git a/src/debug/Logger.cpp b/src/debug/Logger.cpp index 1649b9a0..b14d441b 100644 --- a/src/debug/Logger.cpp +++ b/src/debug/Logger.cpp @@ -51,6 +51,7 @@ void Logger::log(LogLevel level, const std::string& name, std::string message) { auto string = ss.str(); if (file.good()) { file << string << '\n'; + file.flush(); } std::cout << string << std::endl; }