diff options
author | John Wiegley <johnw@newartisans.com> | 2010-06-10 08:16:26 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2010-06-10 08:16:26 -0400 |
commit | 7be17fd779db1ee2a20064bdf3b4a8f5da3eb968 (patch) | |
tree | 4408ceac022ed5370f2eb4b57408bbc7050697c4 /src/utils.cc | |
parent | 5aa1f8b6249a4d6d933b9ce1b2c79011439a04c6 (diff) | |
download | fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.tar.gz fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.tar.bz2 fork-ledger-7be17fd779db1ee2a20064bdf3b4a8f5da3eb968.zip |
Corrections to the way error strings are generated
Diffstat (limited to 'src/utils.cc')
-rw-r--r-- | src/utils.cc | 2 |
1 files changed, 2 insertions, 0 deletions
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) |