Skip to content

Commit

Permalink
input_chunk: add context for chunk append debug message
Browse files Browse the repository at this point in the history
this message is very useful in debugging Fluent Bit log loss
or frozen. But it needs context on which input the append
happened for.

Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley committed May 2, 2023
1 parent bdcaec2 commit 1a5e56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flb_input_chunk.c
Original file line number Diff line number Diff line change
Expand Up @@ -1808,8 +1808,8 @@ static int input_chunk_append_raw(struct flb_input_instance *in,
real_size = flb_input_chunk_get_real_size(ic);
real_diff = real_size - pre_real_size;
if (real_diff != 0) {
flb_debug("[input chunk] update output instances with new chunk size diff=%zu",
real_diff);
flb_debug("[input chunk] update output instances with new chunk size diff=%d, records=%zu, input=%s",
real_diff, n_records, flb_input_name(in));
flb_input_chunk_update_output_instances(ic, real_diff);
}

Expand Down

0 comments on commit 1a5e56f

Please sign in to comment.