fix: logger not flushing after every line
This commit is contained in:
parent
9211e835db
commit
04c27ca800
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user