mirror of https://git.48k.eu/ogserver
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
parent
56e4a01af0
commit
0ab4721714
10
src/core.c
10
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. */
|
||||
|
|
Loading…
Reference in New Issue