The m_log_buf just a buffer for the log messages in _flush() before
flushing them to the log files and the buffer should already be
emptied by the _flush() routine. It makes no sense to flush the empty
buffer again here.
Signed-off-by: Xiubo Li <xiubli@redhat.com>
}
_flush(m_flush, false);
- _flush_logbuf();
_log_message("--- begin dump of recent events ---", true);
{
_log_message("--- end dump of recent events ---", true);
- _flush_logbuf();
+ assert(m_log_buf.empty());
m_flush_mutex_holder = 0;
}