From 8b2a4428cc9ac93f2acb1184af8b41f5a621afd9 Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Tue, 31 Jan 2023 15:15:52 -0800 Subject: [PATCH] input_chunk: add context for chunk append debug message 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 --- src/flb_input_chunk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flb_input_chunk.c b/src/flb_input_chunk.c index 9fc147a72e8..99ad920c82f 100644 --- a/src/flb_input_chunk.c +++ b/src/flb_input_chunk.c @@ -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); }