Skip to content

Commit

Permalink
input_chunk: Use flb_plg_debug instead of normal printf (#7901)
Browse files Browse the repository at this point in the history
This is because log_level for this line should be handled.

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Sep 23, 2023
1 parent 85be089 commit ecdbd6f
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 @@ -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);
Expand Down

0 comments on commit ecdbd6f

Please sign in to comment.