Skip to content

Commit

Permalink
filter_parser: added debug message (CID 508252)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Aug 13, 2024
1 parent 13db2ee commit 25f1376
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugins/filter_parser/filter_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ static int cb_parser_filter(const void *data, size_t bytes,
encoder_result = flb_log_event_encoder_commit_record(&log_encoder);
}

if (encoder_result != FLB_EVENT_ENCODER_SUCCESS) {
flb_plg_error(ctx->ins, "log event encoder error : %d", encoder_result);
}

flb_free(append_arr);
append_arr = NULL;
}
Expand Down

0 comments on commit 25f1376

Please sign in to comment.