aboutsummaryrefslogtreecommitdiff
path: root/butl
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-01-26 03:29:03 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-01-26 12:53:21 +0300
commitb2a76e026d69385779e15febe1516abc911522c9 (patch)
tree8c6152c421977454f2f1a4d5ebc775336352c71e /butl
parent22b2bfcb4c5d68a7b354da73df9cee2d4d3c831b (diff)
Fix diag_record::flush()
Diffstat (limited to 'butl')
-rw-r--r--butl/diagnostics.cxx5
1 files changed, 4 insertions, 1 deletions
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)