From ecdbd6f149c9aa7a5efd8c19ba8914d0abb979ee Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Sun, 24 Sep 2023 02:18:02 +0900 Subject: [PATCH] input_chunk: Use flb_plg_debug instead of normal printf (#7901) This is because log_level for this line should be handled. Signed-off-by: Hiroshi Hatake --- 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 53ddb6c2905..b851514306f 100644 --- a/src/flb_input_chunk.c +++ b/src/flb_input_chunk.c @@ -1724,8 +1724,8 @@ static int append_to_ring_buffer(struct flb_input_instance *ins, /* append chunk raw context to the ring buffer */ ret = flb_ring_buffer_write(ins->rb, (void *) &cr, sizeof(cr)); if (ret == -1) { - printf("[%s] failed buffer write, retries=%i\n", - flb_input_name(ins), retries); fflush(stdout); + flb_plg_debug(ins, "failed buffer write, retries=%i\n", + retries); /* sleep for 100000 microseconds (100 milliseconds) */ usleep(100000);