From 893a3c90dad7728a8f5757f76dc38896c24b402b Mon Sep 17 00:00:00 2001 From: Jason Dellaluce Date: Thu, 22 Jun 2023 09:04:39 +0000 Subject: [PATCH] update(userspace/falco/app): print loaded event sources Signed-off-by: Jason Dellaluce --- userspace/falco/app/actions/helpers_generic.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/userspace/falco/app/actions/helpers_generic.cpp b/userspace/falco/app/actions/helpers_generic.cpp index 511cccdc..73500dca 100644 --- a/userspace/falco/app/actions/helpers_generic.cpp +++ b/userspace/falco/app/actions/helpers_generic.cpp @@ -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) { - /* Print all enabled sources. */ + /* Print all loaded sources. */ 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) { str += str.empty() ? "" : ", ";