From 34d796439fd1b616036f887ea4bb47e87c1be978 Mon Sep 17 00:00:00 2001 From: Andrea Terzolo Date: Tue, 29 Aug 2023 12:46:12 +0200 Subject: [PATCH] cleanup: fail if the time unit is not specified 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 b4a05ef1..80aa6d64 100644 --- a/userspace/falco/app/actions/process_events.cpp +++ b/userspace/falco/app/actions/process_events.cpp @@ -427,7 +427,7 @@ static falco::app::run_result init_stats_writer( if(std::all_of(config->m_metrics_interval_str.begin(), config->m_metrics_interval_str.end(), ::isdigit)) { - falco_logger::log(LOG_WARNING, "Metrics interval was passed as numeric value without Prometheus time unit, this option will be deprecated in the future"); + return falco::app::run_result::fatal("Metrics interval was passed as numeric value without Prometheus time unit. Please specify a time unit"); } if (config->m_metrics_enabled && !sw->has_output())