diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-26 03:29:03 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-01-26 12:53:21 +0300 |
commit | b2a76e026d69385779e15febe1516abc911522c9 (patch) | |
tree | 8c6152c421977454f2f1a4d5ebc775336352c71e /butl | |
parent | 22b2bfcb4c5d68a7b354da73df9cee2d4d3c831b (diff) |
Fix diag_record::flush()
Diffstat (limited to 'butl')
-rw-r--r-- | butl/diagnostics.cxx | 5 |
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) |