mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix: logger not flushing after every line
This commit is contained in:
parent
9211e835db
commit
04c27ca800
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue