Skip to content

Commit

Permalink
debug inline check
Browse files Browse the repository at this point in the history
  • Loading branch information
AdheipSingh committed Dec 4, 2024
1 parent 78b90e3 commit c9ae837
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions plugins/out_parseable/parseable.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,19 +122,19 @@ static void cb_parseable_flush(struct flb_event_chunk *event_chunk,
if (end_quote != NULL) {
*end_quote = '\0'; // Null-terminate the extracted value
namespace_name = flb_sds_printf(&namespace_name, "%s", namespace_name_value);
// Inline check for excluded namespaces
struct mk_list *head;
struct flb_slist_entry *entry;
mk_list_foreach(head, &ctx->exclude_namespaces) {
entry = mk_list_entry(head, struct flb_slist_entry, _head);
if (flb_sds_cmp(entry->str, namespace_name, flb_sds_len(namespace_name)) == 0) {
flb_plg_info(ctx->ins, "Skipping excluded namespace: %s", namespace_name);
flb_sds_destroy(namespace_name);
flb_sds_destroy(body);
flb_sds_destroy(body_copy);
continue; // Skip sending the HTTP request
}
}
// // Inline check for excluded namespaces
// struct mk_list *head;
// struct flb_slist_entry *entry;
// mk_list_foreach(head, &ctx->exclude_namespaces) {
// entry = mk_list_entry(head, struct flb_slist_entry, _head);
// if (flb_sds_cmp(entry->str, namespace_name, flb_sds_len(namespace_name)) == 0) {
// flb_plg_info(ctx->ins, "Skipping excluded namespace: %s", namespace_name);
// flb_sds_destroy(namespace_name);
// flb_sds_destroy(body);
// flb_sds_destroy(body_copy);
// continue; // Skip sending the HTTP request
// }
// }
}
}
}
Expand Down

0 comments on commit c9ae837

Please sign in to comment.