Skip to content

Commit

Permalink
add flush to each line logged (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
anders94 authored and metalicjames committed Jun 5, 2018
1 parent 5a9f07f commit da2c317
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/log.cpp
Expand Up @@ -69,7 +69,7 @@ bool CryptoKernel::Log::printf(int loglevel, std::string message) {
stagingstream << message << "\n";

if(fPrintToConsole) {
std::cout << stagingstream.str();
std::cout << stagingstream.str() << std::flush;
}

logfilemutex.lock();
Expand Down

0 comments on commit da2c317

Please sign in to comment.