Skip to content

Commit

Permalink
add debug to exclude namespaces list
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh committed Dec 4, 2024
1 parent c5827a3 commit 22a23ef
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions plugins/out_parseable/parseable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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\":\"");
Expand Down

0 comments on commit 22a23ef

Please sign in to comment.