chore(userspace/falco): cleanup unnecessary flush

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
Leonardo Grasso 2020-09-29 17:30:54 +02:00 committed by poiana
parent a4b3af29ae
commit e4aa646146
2 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,6 @@ void falco::outputs::output_file::cleanup()
{
if(m_outfile.is_open())
{
m_outfile.flush();
m_outfile.close();
}
}

View File

@ -26,5 +26,6 @@ void falco::outputs::output_syslog::output_event(gen_event *evt, std::string &ru
void falco::outputs::output_syslog::output_msg(falco_common::priority_type priority, std::string &msg)
{
// Syslog output should not have any trailing newline
::syslog(priority, "%s", msg.c_str());
}