Skip to content

Commit

Permalink
out_exit: change default to emulate legacy behaviour.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed May 30, 2024
1 parent 3f6dd33 commit f7f72fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/out_exit/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,8 @@ static int cb_exit_init(struct flb_output_instance *ins, struct flb_config *conf
if (ctx->flush_count == -1 &&
ctx->record_count == -1 &&
ctx->time_count == -1) {
flb_plg_error(ctx->ins, "no count set for flush, record or time, set at least one");
flb_free(ctx);
return -1;
// emulate legacy behaviour by setting to a single flush.
ctx->flush_count = 1;
}

flb_output_set_context(ins, ctx);
Expand Down

0 comments on commit f7f72fb

Please sign in to comment.