mirror of
https://github.com/falcosecurity/falco.git
synced 2025-08-17 13:47:14 +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)
|
if (enable)
|
||||||
{
|
{
|
||||||
s_sinsp_logger_prefix = prefix;
|
s_sinsp_logger_prefix = prefix;
|
||||||
g_logger.set_severity(decode_sinsp_severity(severity));
|
libsinsp_logger()->set_severity(decode_sinsp_severity(severity));
|
||||||
g_logger.disable_timestamps();
|
libsinsp_logger()->disable_timestamps();
|
||||||
g_logger.add_callback_log(
|
libsinsp_logger()->add_callback_log(
|
||||||
[](std::string&& str, const sinsp_logger::severity sev)
|
[](std::string&& str, const sinsp_logger::severity sev)
|
||||||
{
|
{
|
||||||
// note: using falco_logger::level ensures that the sinsp
|
// 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
|
else
|
||||||
{
|
{
|
||||||
g_logger.remove_callback_log();
|
libsinsp_logger()->remove_callback_log();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user