From b2a76e026d69385779e15febe1516abc911522c9 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 26 Jan 2017 03:29:03 +0300 Subject: Fix diag_record::flush() --- butl/diagnostics.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/butl/diagnostics.cxx b/butl/diagnostics.cxx index bdff3d8..4cd8515 100644 --- a/butl/diagnostics.cxx +++ b/butl/diagnostics.cxx @@ -17,7 +17,10 @@ namespace butl { if (!empty_) { - *diag_stream << os.str () << endl; + os.put ('\n'); + *diag_stream << os.str (); + diag_stream->flush (); + empty_ = true; if (epilogue_ != nullptr) -- cgit v1.1