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 Sep 16, 2022
1 parent ccb6ec5 commit f06670e
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 f06670e

Please sign in to comment.