diff --git a/websocketpp/logger/basic.hpp b/websocketpp/logger/basic.hpp index 36ceb6c7b6..90eaa14038 100644 --- a/websocketpp/logger/basic.hpp +++ b/websocketpp/logger/basic.hpp @@ -82,6 +82,7 @@ public: *m_out << "[" << get_timestamp() << "] " << "[" << names::channel_name(channel) << "] " << msg << "\n"; + m_out.flush(); } void write(level channel, const char* msg) { @@ -90,6 +91,7 @@ public: *m_out << "[" << get_timestamp() << "] " << "[" << names::channel_name(channel) << "] " << msg << "\n"; + m_out.flush(); } bool static_test(level channel) const {