aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include/misc_log_ex.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-02 20:59:24 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-04-02 20:59:24 +0100
commitb1aaf20e5759be6283ed13c19f91f658705bc009 (patch)
treeb7ec638ff1c5bce0aa5768434821320ea53382fd /contrib/epee/include/misc_log_ex.h
parentMerge pull request #780 (diff)
downloadmonero-b1aaf20e5759be6283ed13c19f91f658705bc009.tar.xz
epee: flush output after a message
This is equivalent to line buffering, as C++ seems to lack a setvbuf equivalent which alows line buffering.
Diffstat (limited to '')
-rw-r--r--contrib/epee/include/misc_log_ex.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/include/misc_log_ex.h b/contrib/epee/include/misc_log_ex.h
index d1451ff12..7cb1e61aa 100644
--- a/contrib/epee/include/misc_log_ex.h
+++ b/contrib/epee/include/misc_log_ex.h
@@ -424,6 +424,7 @@ namespace log_space
}
std::cout << buf;
+ std::cout << std::flush;
#endif
reset_console_color();
return true;