Skip to content

Commit

Permalink
flb_output: use task to reach chunk trace.
Browse files Browse the repository at this point in the history
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan authored and edsiper committed Oct 29, 2023
1 parent df4c07d commit daffba9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/fluent-bit/flb_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -945,16 +945,16 @@ static inline void flb_output_return(int ret, struct flb_coro *co) {

flb_task_release_lock(task);

flb_error("chunk process event chunk: %p", out_flush->processed_event_chunk);
if (out_flush->processed_event_chunk) {

#ifdef FLB_HAVE_CHUNK_TRACE
flb_error("chunk tracing for output");
if (out_flush->processed_event_chunk->trace) {
flb_chunk_trace_output(out_flush->processed_event_chunk->trace, o_ins, ret);
if (task->event_chunk) {
if (task->event_chunk->trace) {
flb_chunk_trace_output(task->event_chunk->trace, o_ins, ret);
}
}
#endif

if (out_flush->processed_event_chunk) {

if (task->event_chunk->data != out_flush->processed_event_chunk->data) {
flb_free(out_flush->processed_event_chunk->data);
}
Expand Down

0 comments on commit daffba9

Please sign in to comment.