From 7be17fd779db1ee2a20064bdf3b4a8f5da3eb968 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 10 Jun 2010 08:16:26 -0400 Subject: Corrections to the way error strings are generated --- src/utils.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/utils.cc') diff --git a/src/utils.cc b/src/utils.cc index c3fecca0..b8acb3db 100644 --- a/src/utils.cc +++ b/src/utils.cc @@ -593,6 +593,7 @@ bool logger_func(log_level_t level) } *_log_stream << ' ' << _log_buffer.str() << std::endl; + _log_buffer.clear(); _log_buffer.str(""); return true; @@ -663,6 +664,7 @@ void start_timer(const char * name, log_level_t lvl) (*i).second.begin = TRUE_CURRENT_TIME(); (*i).second.active = true; } + _log_buffer.clear(); _log_buffer.str(""); #if defined(VERIFY_ON) -- cgit v1.2.3