From 22a23ef8603432b6276648fa52d0a2810328a74a Mon Sep 17 00:00:00 2001 From: AdheipSingh Date: Wed, 4 Dec 2024 21:30:02 +0530 Subject: [PATCH] add debug to exclude namespaces list --- plugins/out_parseable/parseable.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/plugins/out_parseable/parseable.c b/plugins/out_parseable/parseable.c index 165fe741661..480e6775340 100644 --- a/plugins/out_parseable/parseable.c +++ b/plugins/out_parseable/parseable.c @@ -123,6 +123,17 @@ static void cb_parseable_flush(struct flb_event_chunk *event_chunk, flb_plg_info(ctx->ins, "EN: %s", ctx->p_exclude_namespaces); + if (mk_list_is_empty(&ctx->p_exclude_namespaces)) { + flb_plg_info(ctx->ins, "No exclude namespaces configured."); + } else { + struct mk_list *head; + struct flb_slist_entry *entry; + mk_list_foreach(head, &ctx->p_exclude_namespaces) { + entry = mk_list_entry(head, struct flb_slist_entry, _head); + flb_plg_info(ctx->ins, "Exclude namespace: %s", entry->str); + } + } + flb_sds_t namespace_name = flb_sds_create_size(256); // Dynamic string if (body_copy != NULL) { char *namespace_name_value = strstr(body_copy, "\"namespace_name\":\"");