so the recent entries are still available if dump_recent is called
again. This is the case e.g. when the signal handler wants to dump the
recent entries both to the regular log and to the crash log.
Signed-off-by: Mykola Golub <mgolub@suse.com>
EntryVector t;
t.insert(t.end(), std::make_move_iterator(m_recent.begin()), std::make_move_iterator(m_recent.end()));
m_recent.clear();
- _flush(t, false, true);
+ _flush(t, true, true);
}
char buf[4096];