From 8d6c6900d3ae912dc54eafdf1a8a32d34e0d1b7c Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 29 Aug 2023 12:47:55 +0200 Subject: [PATCH] cleanup: turn a warning into an error Signed-off-by: Andrea Terzolo --- userspace/falco/app/actions/process_events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/userspace/falco/app/actions/process_events.cpp b/userspace/falco/app/actions/process_events.cpp index 80aa6d64..50ac60d7 100644 --- a/userspace/falco/app/actions/process_events.cpp +++ b/userspace/falco/app/actions/process_events.cpp @@ -432,7 +432,7 @@ static falco::app::run_result init_stats_writer( if (config->m_metrics_enabled && !sw->has_output()) { - falco_logger::log(LOG_WARNING, "Metrics are enabled with no output configured, no snapshot will be collected"); + return falco::app::run_result::fatal("Metrics are enabled with no output configured. Please enable at least one output channel"); } falco_logger::log(LOG_INFO, "Setting metrics interval to " + config->m_metrics_interval_str + ", equivalent to " + std::to_string(config->m_metrics_interval) + " (ms)\n");