From 0cae71341290af9fe8ae9fc0d9ff75235cc939f1 Mon Sep 17 00:00:00 2001 From: Mark Stemm Date: Wed, 25 Aug 2021 17:26:08 -0700 Subject: [PATCH] Use new outputs interface with engine Use the new outputs interface, that uses the engine to provide a formatter. Signed-off-by: Mark Stemm --- userspace/falco/falco.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/userspace/falco/falco.cpp b/userspace/falco/falco.cpp index 826e459a..1397aa17 100644 --- a/userspace/falco/falco.cpp +++ b/userspace/falco/falco.cpp @@ -1134,14 +1134,15 @@ int falco_init(int argc, char **argv) outputs = new falco_outputs(); - outputs->init(config.m_json_output, - config.m_json_include_output_property, - config.m_json_include_tags_property, - config.m_output_timeout, - config.m_notifications_rate, config.m_notifications_max_burst, - config.m_buffered_outputs, - config.m_time_format_iso_8601, - hostname); + outputs->init(engine, + config.m_json_output, + config.m_json_include_output_property, + config.m_json_include_tags_property, + config.m_output_timeout, + config.m_notifications_rate, config.m_notifications_max_burst, + config.m_buffered_outputs, + config.m_time_format_iso_8601, + hostname); for(auto output : config.m_outputs) {