From a0c544df5d882bea812fb0ef648cdee98939e89c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 27 Dec 2013 12:14:58 +0100 Subject: [PATCH] Remove or lower the priority of some debug messages. --- src/conf.c | 1 - src/meta.c | 6 +++--- src/net_socket.c | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/conf.c b/src/conf.c index e2b64429..09f2d138 100644 --- a/src/conf.c +++ b/src/conf.c @@ -393,7 +393,6 @@ bool read_server_config(void) { if (l > 5 && !strcmp(".conf", & ep->d_name[ l - 5 ])) { free(fname); xasprintf(&fname, "%s/%s", dname, ep->d_name); - logger(LOG_DEBUG, "Reading conf file \"%s\"", fname); x = read_config_file(config_tree, fname); } } diff --git a/src/meta.c b/src/meta.c index 40770298..0b8a379b 100644 --- a/src/meta.c +++ b/src/meta.c @@ -180,7 +180,7 @@ bool receive_meta(connection_t *c) { if(!c->node) { if(c->outgoing && proxytype == PROXY_SOCKS4 && c->allow_request == ID) { if(c->buffer[0] == 0 && c->buffer[1] == 0x5a) { - logger(LOG_DEBUG, "Proxy request granted"); + ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Proxy request granted"); } else { logger(LOG_ERR, "Proxy request rejected"); return false; @@ -199,9 +199,9 @@ bool receive_meta(connection_t *c) { return false; } if(c->buffer[3] == 0) { - logger(LOG_DEBUG, "Proxy request granted"); + ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Proxy request granted"); } else { - logger(LOG_DEBUG, "Proxy request rejected"); + logger(LOG_ERR, "Proxy request rejected"); return false; } } else { diff --git a/src/net_socket.c b/src/net_socket.c index 48e07834..b889bca6 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -311,7 +311,7 @@ static void do_outgoing_pipe(connection_t *c, char *command) { if(fork()) { c->socket = fd[0]; close(fd[1]); - logger(LOG_DEBUG, "Using proxy %s", command); + ifdebug(CONNECTIONS) logger(LOG_DEBUG, "Using proxy %s", command); return; } -- 2.20.1