mirror of
https://github.com/falcosecurity/falco.git
synced 2025-06-29 08:07:24 +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())
|
if(m_outfile.is_open())
|
||||||
{
|
{
|
||||||
m_outfile.flush();
|
|
||||||
m_outfile.close();
|
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)
|
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());
|
::syslog(priority, "%s", msg.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user