From 31b6ca60e111a8f1413a1a5251fb6344e6d4cc4b Mon Sep 17 00:00:00 2001 From: Wesley Pettit <wppttt@amazon.com> Date: Tue, 15 Nov 2022 21:21:12 -0800 Subject: [PATCH] in_tcp: user friendly warn message for skipping records (#6062) Signed-off-by: Wesley Pettit <wppttt@amazon.com> Signed-off-by: root <root@sumit-acs.novalocal> --- 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 552a434cd55..2f8183f9212 100644 --- a/plugins/in_tcp/tcp_conn.c +++ b/plugins/in_tcp/tcp_conn.c @@ -184,9 +184,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; }