diff --git a/userspace/falco/app_actions/init_falco_engine.cpp b/userspace/falco/app_actions/init_falco_engine.cpp index 7d6c65f3..6fe513ae 100644 --- a/userspace/falco/app_actions/init_falco_engine.cpp +++ b/userspace/falco/app_actions/init_falco_engine.cpp @@ -14,6 +14,8 @@ See the License for the specific language governing permissions and limitations under the License. */ +#include + #include "application.h" using namespace falco::app; @@ -89,6 +91,13 @@ application::run_result application::init_falco_engine() return run_result::fatal("At least one event source needs to be enabled"); } + /* Print all enabled sources. */ + std::ostringstream os; + std::copy(m_state->enabled_sources.begin(), m_state->enabled_sources.end(), std::ostream_iterator(os, ",")); + std::string result = os.str(); + result.pop_back(); + falco_logger::log(LOG_INFO, "Enabled sources: " + result + "\n"); + m_state->engine->set_min_priority(m_state->config->m_min_priority); return run_result::ok();