Skip to content

Commit

Permalink
fix: logger not flushing after every line
Browse files Browse the repository at this point in the history
  • Loading branch information
MihailRis committed Jun 5, 2024
1 parent 9211e83 commit 04c27ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/debug/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 04c27ca

Please sign in to comment.