From b185489eb4445bd1d5bca1f82c8e52af258ee69a Mon Sep 17 00:00:00 2001 From: Felix Herrmann Date: Wed, 3 Jun 2020 16:46:40 +0200 Subject: limit logspam in gateway on client overflow update client buffer overflow counter in send function. Gather all overflow checks into dlt_daemon_client. Signed-off-by: Felix Herrmann Signed-off-by: KHANH LUONG HONG DUY --- src/gateway/dlt_gateway.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/gateway') diff --git a/src/gateway/dlt_gateway.c b/src/gateway/dlt_gateway.c index 7cad893..9c6578f 100644 --- a/src/gateway/dlt_gateway.c +++ b/src/gateway/dlt_gateway.c @@ -1416,7 +1416,7 @@ DltReturnValue dlt_gateway_process_passive_node_messages(DltDaemon *daemon, return DLT_RETURN_ERROR; } - if (dlt_daemon_client_send(DLT_DAEMON_SEND_TO_ALL, + dlt_daemon_client_send(DLT_DAEMON_SEND_TO_ALL, daemon, daemon_local, msg.headerbuffer, @@ -1425,10 +1425,8 @@ DltReturnValue dlt_gateway_process_passive_node_messages(DltDaemon *daemon, msg.headersize - sizeof(DltStorageHeader), msg.databuffer, msg.datasize, - verbose) != DLT_DAEMON_ERROR_OK) - dlt_log(LOG_WARNING, "Forward message to clients failed!\n"); - } - else { /* otherwise remove this connection and do not connect again */ + verbose); + } else { /* otherwise remove this connection and do not connect again */ dlt_vlog(LOG_WARNING, "Received ECUid (%s) differs to configured ECUid(%s). " "Discard this message.\n", -- cgit v1.2.1