Skip to content

Commit 4285472

Browse files
committed
out_logdna: remove promoted keys from line field
Signed-off-by: lecaros <lecaros@chronosphere.io>
1 parent b3625b0 commit 4285472

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

tests/runtime/out_logdna.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,14 @@ void flb_test_backward_compat()
695695
* Test: repeated start/push/stop/destroy cycles to verify
696696
* proper resource cleanup (no crashes from leaks or double-free).
697697
*/
698+
static void cb_lifecycle_noop(void *ctx, int ffd, int res_ret,
699+
void *res_data, size_t res_size,
700+
void *data)
701+
{
702+
flb_sds_t json = res_data;
703+
flb_sds_destroy(json);
704+
}
705+
698706
void flb_test_lifecycle()
699707
{
700708
int i;
@@ -718,6 +726,9 @@ void flb_test_lifecycle()
718726
"api_key", "test-key",
719727
NULL);
720728

729+
flb_output_set_test(ctx, out_ffd, "formatter",
730+
cb_lifecycle_noop, NULL, NULL);
731+
721732
ret = flb_start(ctx);
722733
TEST_CHECK(ret == 0);
723734

0 commit comments

Comments
 (0)