mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-01 22:47:46 +00:00
fix: adopt new libsinsp logger
Signed-off-by: Roberto Scolaro <roberto.scolaro21@gmail.com>
This commit is contained in:
parent
ce87f2a014
commit
9557b74501
@ -112,9 +112,9 @@ void falco_logger::set_sinsp_logging(bool enable, const std::string& severity, c
|
||||
if (enable)
|
||||
{
|
||||
s_sinsp_logger_prefix = prefix;
|
||||
g_logger.set_severity(decode_sinsp_severity(severity));
|
||||
g_logger.disable_timestamps();
|
||||
g_logger.add_callback_log(
|
||||
libsinsp_logger()->set_severity(decode_sinsp_severity(severity));
|
||||
libsinsp_logger()->disable_timestamps();
|
||||
libsinsp_logger()->add_callback_log(
|
||||
[](std::string&& str, const sinsp_logger::severity sev)
|
||||
{
|
||||
// note: using falco_logger::level ensures that the sinsp
|
||||
@ -126,7 +126,7 @@ void falco_logger::set_sinsp_logging(bool enable, const std::string& severity, c
|
||||
}
|
||||
else
|
||||
{
|
||||
g_logger.remove_callback_log();
|
||||
libsinsp_logger()->remove_callback_log();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user