From 6bfcc57395fb3ce0c00b35a07b3f6227fd2606de Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Wed, 21 Nov 2018 12:46:11 +0000 Subject: scoped_message_writer: protect all std::cout usage from readline --- src/common/scoped_message_writer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/scoped_message_writer.h b/src/common/scoped_message_writer.h index d887a13c9..42f439ad8 100644 --- a/src/common/scoped_message_writer.h +++ b/src/common/scoped_message_writer.h @@ -101,13 +101,13 @@ public: MCLOG_FILE(m_log_level, "msgwriter", m_oss.str()); + PAUSE_READLINE(); if (epee::console_color_default == m_color) { std::cout << m_oss.str(); } else { - PAUSE_READLINE(); set_console_color(m_color, m_bright); std::cout << m_oss.str(); epee::reset_console_color(); -- cgit v1.2.3