From f06670ee2f0a274616f54f37b2e4c43cd44aea5a Mon Sep 17 00:00:00 2001 From: Wesley Pettit Date: Fri, 16 Sep 2022 13:25:43 -0700 Subject: [PATCH] in_tcp: user friendly warn message for skipping records 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; }