mirror of
https://github.com/falcosecurity/falco.git
synced 2025-07-13 06:24:29 +00:00
update(userspace/falco/app): print loaded event sources
Signed-off-by: Jason Dellaluce <jasondellaluce@gmail.com>
This commit is contained in:
parent
c2af4c3a21
commit
893a3c90da
@ -39,8 +39,17 @@ bool falco::app::actions::check_rules_plugin_requirements(falco::app::state& s,
|
|||||||
|
|
||||||
void falco::app::actions::print_enabled_event_sources(falco::app::state& s)
|
void falco::app::actions::print_enabled_event_sources(falco::app::state& s)
|
||||||
{
|
{
|
||||||
/* Print all enabled sources. */
|
/* Print all loaded sources. */
|
||||||
std::string str;
|
std::string str;
|
||||||
|
for (const auto &src : s.loaded_sources)
|
||||||
|
{
|
||||||
|
str += str.empty() ? "" : ", ";
|
||||||
|
str += src;
|
||||||
|
}
|
||||||
|
falco_logger::log(LOG_INFO, "Loaded event sources: " + str);
|
||||||
|
|
||||||
|
/* Print all enabled sources. */
|
||||||
|
str.clear();
|
||||||
for (const auto &src : s.enabled_sources)
|
for (const auto &src : s.enabled_sources)
|
||||||
{
|
{
|
||||||
str += str.empty() ? "" : ", ";
|
str += str.empty() ? "" : ", ";
|
||||||
|
Loading…
Reference in New Issue
Block a user