From 04c27ca800e47802e011a0bf9f03afb675b7657b Mon Sep 17 00:00:00 2001 From: MihailRis Date: Wed, 5 Jun 2024 19:05:23 +0300 Subject: [PATCH] fix: logger not flushing after every line --- src/debug/Logger.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/debug/Logger.cpp b/src/debug/Logger.cpp index 1649b9a04..b14d441b7 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; }