From c5d57ccf4f85af77e2a2bbb1121df95887e2962f Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Tue, 15 Nov 2022 21:21:53 -0800 Subject: [PATCH] in_tcp: user friendly warn message for skipping records (#6061) Signed-off-by: Wesley Pettit --- plugins/in_tcp/tcp_conn.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/in_tcp/tcp_conn.c b/plugins/in_tcp/tcp_conn.c index 53b47cb3ebc..3e36abf2575 100644 --- a/plugins/in_tcp/tcp_conn.c +++ b/plugins/in_tcp/tcp_conn.c @@ -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; }