Flushing log buffer every time a print is performed (masks useful information when a crash occurs).

This commit is contained in:
Don Honerbrink 2015-01-13 23:12:36 +00:00
parent 1a82ea34a2
commit e3d5a7b553

View File

@ -74,4 +74,5 @@ void Logger::Write(Zone zone, std::string component, std::string message)
std::stringstream ss;
ss << "[" << timeStr << "] [" << zoneStr << "] [" << component << "] " << message << std::endl;
std::cout << ss.str();
std::cout.flush();
}