mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-28 15:47:25 +00:00
chore(userspace/falco): cleanup unnecessary flush
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
This commit is contained in:
parent
a4b3af29ae
commit
e4aa646146
@ -52,7 +52,6 @@ void falco::outputs::output_file::cleanup()
|
||||
{
|
||||
if(m_outfile.is_open())
|
||||
{
|
||||
m_outfile.flush();
|
||||
m_outfile.close();
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user