Skip to content

Commit

Permalink
cleanup: turn a warning into an error
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
  • Loading branch information
Andreagit97 authored and poiana committed Aug 29, 2023
1 parent 34d7964 commit 8d6c690
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userspace/falco/app/actions/process_events.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 8d6c690

Please sign in to comment.