diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-23 21:54:11 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2023-11-23 22:08:49 +0100 |
commit | 0ab4721714dfbe84099967bfea23d1ecb6df891a (patch) | |
tree | 5263b3e9813ec7b089db5ee1f50d7cf28108d769 /src/core.c | |
parent | 56e4a01af0b22d7e629fd4db419ae5d6a3a5be50 (diff) |
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.
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -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. */ |