Skip to content

Commit c654f08

Browse files
committed
out_exit: change default to emulate legacy behaviour.
Signed-off-by: Phillip Whelan <[email protected]>
1 parent 01a2cd7 commit c654f08

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

plugins/out_exit/exit.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,8 @@ static int cb_exit_init(struct flb_output_instance *ins, struct flb_config *conf
6767
if (ctx->flush_count == -1 &&
6868
ctx->record_count == -1 &&
6969
ctx->time_count == -1) {
70-
flb_plg_error(ctx->ins, "no count set for flush, record or time, set at least one");
71-
flb_free(ctx);
72-
return -1;
70+
// emulate legacy behaviour by setting to a single flush.
71+
ctx->flush_count = 1;
7372
}
7473

7574
flb_output_set_context(ins, ctx);

0 commit comments

Comments
 (0)