From 0ab4721714dfbe84099967bfea23d1ecb6df891a Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 23 Nov 2023 21:54:11 +0100 Subject: core: remove useless log when ogClient connects to server The following log message is display for each ogClient that is connected to the ogServer: Sent refresh to: 192.168.2.200 this tells the ogClient to send his current partition table when the connection between ogServer <-> ogClient starts. This is not very useful, remove it. --- src/core.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/core.c b/src/core.c index 4855f42..24fee79 100644 --- a/src/core.c +++ b/src/core.c @@ -304,19 +304,11 @@ static void og_client_timer_cb(struct ev_loop *loop, ev_timer *timer, int events static void og_agent_send_refresh(struct og_client *cli) { struct og_msg_params params; - int err; params.ips_array[0] = inet_ntoa(cli->addr.sin_addr); params.ips_array_len = 1; - err = og_send_request(OG_METHOD_GET, OG_CMD_REFRESH, ¶ms, NULL); - if (err < 0) { - syslog(LOG_ERR, "Can't send refresh to: %s\n", - params.ips_array[0]); - } else { - syslog(LOG_INFO, "Sent refresh to: %s\n", - params.ips_array[0]); - } + og_send_request(OG_METHOD_GET, OG_CMD_REFRESH, ¶ms, NULL); } /* Shut down connection if there is no complete message after 10 seconds. */ -- cgit v1.2.3-18-g5258