Skip to content

Commit

Permalink
in_tcp: user friendly warn message for skipping records
Browse files Browse the repository at this point in the history
Signed-off-by: Wesley Pettit <[email protected]>
  • Loading branch information
PettitWesley committed Nov 14, 2022
1 parent 27b9f6b commit cc4c678
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/in_tcp/tcp_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ int tcp_conn_event(void *data)
available = (conn->buf_size - conn->buf_len) - 1;
if (available < 1) {
if (conn->buf_size + ctx->chunk_size > ctx->buffer_size) {
flb_plg_trace(ctx->ins,
"fd=%i incoming data exceed limit (%zu KB)",
event->fd, (ctx->buffer_size / 1024));
flb_plg_warn(ctx->ins,
"fd=%i incoming data exceeds 'Buffer_Size' (%zu KB)",
event->fd, (ctx->buffer_size / 1024));
tcp_conn_del(conn);
return -1;
}
Expand Down

0 comments on commit cc4c678

Please sign in to comment.