From 47b89778075eea9e2d189836f1de646295c1ac97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20L=C3=BCke?= Date: Fri, 27 Dec 2024 18:50:09 +0100 Subject: [PATCH] cleanup the mana c plugin --- src/mana_plugin_c_test.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mana_plugin_c_test.c b/src/mana_plugin_c_test.c index 645fdfd..aea1350 100644 --- a/src/mana_plugin_c_test.c +++ b/src/mana_plugin_c_test.c @@ -9,28 +9,30 @@ struct Context MANA_DEFINE_PLUGIN_INIT(init) { - log_set_level(LOG_DEBUG); + log_set_level(LOG_INFO); struct Context *ctx = calloc(1, sizeof(*ctx)); - log_debug("init: ctx=%p", ctx); + log_info("init: ctx=%p", ctx); return ctx; } MANA_DEFINE_PLUGIN_SHUTDOWN(shutdown) { - (void)context; - log_debug("shutdown"); + log_info("shutdown: ctx=%p", context); + free(context); } MANA_DEFINE_PLUGIN_BEGIN_RUN(begin_run) { - log_debug("begin_run: ctx=%p, descriptor_json=%s", context, descriptor_json); + (void)descriptor_json; + log_info("begin_run: ctx=%p", context); /* pretty useless as the json needs to be parsed back into some c structure describing the input */ } MANA_DEFINE_PLUGIN_END_RUN(end_run) { - log_debug("end: ctx=%p, descriptor_json=%s", context, descriptor_json); + (void)descriptor_json; + log_info("end: ctx=%p", context); } MANA_DEFINE_PLUGIN_EVENT_DATA(process_event)