diff --git a/plugins/out_loki/loki.c b/plugins/out_loki/loki.c index 1043f6f93be..dab858c2e97 100644 --- a/plugins/out_loki/loki.c +++ b/plugins/out_loki/loki.c @@ -454,7 +454,6 @@ static void pack_maps(struct flb_loki *ctx, kv = mk_list_entry(head, struct flb_loki_kv, _head); /* record accessor key/value pair */ - // TODO what if kv->ra_val != NULL? if (kv->ra_key != NULL && kv->ra_val == NULL) { /* try to get the value for the record accessor */ diff --git a/tests/runtime/out_loki.c b/tests/runtime/out_loki.c index a15e1b43965..10a814c407c 100644 --- a/tests/runtime/out_loki.c +++ b/tests/runtime/out_loki.c @@ -811,7 +811,9 @@ static void cb_check_structured_metadata_value(void *ctx, int ffd, "\"value1\", \"key5\": false}, \"map3\": {\"key1\": \"map3_value1\", \"key2\": " \ "\"map3_value2\"}}]" void flb_test_structured_metadata_map_params(char *remove_keys, - char *structured_metadata, char *structured_metadata_map_keys, char *input_log_json, + char *structured_metadata, + char *structured_metadata_map_keys, + char *input_log_json, char *expected_sub_str) { int ret;