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.
master
OpenGnSys Support Team 2023-11-23 21:54:11 +01:00
parent 56e4a01af0
commit 0ab4721714
1 changed files with 1 additions and 9 deletions

View File

@ -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, &params, 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, &params, NULL);
}
/* Shut down connection if there is no complete message after 10 seconds. */