diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-02-04 13:36:15 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-02-04 13:36:15 +0100 |
commit | f3905fe0f9f8186b2feaf96030946e6cdd3812db (patch) | |
tree | 6945707112e0c0d8b73a1e212d31680e9a9cf87f | |
parent | 0a09c5b09c4013b79648ab091495c767ef06c315 (diff) |
#1021 remove LOG_DEBUG syslog
Some distros enable *.* in syslog.conf to add all logging information
to /var/log/syslog. The existing LOG_DEBUG syslog() entries that ogserver
generates fill up the log files very quickly. Remove most of the LOG_DEBUG
syslog() calls.
-rw-r--r-- | src/core.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -25,12 +25,6 @@ static void og_client_release(struct ev_loop *loop, struct og_client *cli) { - if (cli->keepalive_idx >= 0) { - syslog(LOG_DEBUG, "closing keepalive connection for %s:%hu in slot %d\n", - inet_ntoa(cli->addr.sin_addr), - ntohs(cli->addr.sin_port), cli->keepalive_idx); - } - list_del(&cli->list); ev_io_stop(loop, &cli->io); close(cli->io.fd); @@ -97,9 +91,6 @@ static int og_client_recv(struct og_client *cli, int events) syslog(LOG_ERR, "error reading from client %s:%hu (%s)\n", inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port), strerror(errno)); - } else { - syslog(LOG_DEBUG, "closed connection by %s:%hu\n", - inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port)); } return ret; } @@ -159,13 +150,8 @@ static void og_client_read_cb(struct ev_loop *loop, struct ev_io *io, int events goto close; if (cli->keepalive_idx < 0) { - syslog(LOG_DEBUG, "server closing connection to %s:%hu\n", - inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port)); goto close; } else { - syslog(LOG_DEBUG, "leaving client %s:%hu in keepalive mode\n", - inet_ntoa(cli->addr.sin_addr), - ntohs(cli->addr.sin_port)); og_client_reset_state(cli); } break; @@ -276,9 +262,6 @@ static void og_agent_read_cb(struct ev_loop *loop, struct ev_io *io, int events) og_agent_deliver_pending_cmd(cli); } - syslog(LOG_DEBUG, "leaving client %s:%hu in keepalive mode\n", - inet_ntoa(cli->addr.sin_addr), - ntohs(cli->addr.sin_port)); og_agent_reset_state(cli); break; default: @@ -364,9 +347,6 @@ void og_server_accept_cb(struct ev_loop *loop, struct ev_io *io, int events) else if (io->fd == socket_agent_rest) cli->agent = true; - syslog(LOG_DEBUG, "connection from client %s:%hu\n", - inet_ntoa(cli->addr.sin_addr), ntohs(cli->addr.sin_port)); - if (io->fd == socket_agent_rest) ev_io_init(&cli->io, og_agent_read_cb, client_sd, EV_READ); else |