Remove or lower the priority of some debug messages.
authorGuus Sliepen <guus@sliepen.org>
Fri, 27 Dec 2013 11:14:58 +0000 (12:14 +0100)
committerGuus Sliepen <guus@sliepen.org>
Fri, 27 Dec 2013 11:14:58 +0000 (12:14 +0100)
src/conf.c
src/meta.c
src/net_socket.c

index e2b64429d8fd3ee1616c59efb0ebbbaa7c3b9e22..09f2d1384ea94a8f0c181b872e5cf2dd688ae1ef 100644 (file)
@@ -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);
                                }
                        }
index 4077029849058b0d2b321df5d22ce67e561a7fef..0b8a379b2b70bc87c8e527aa8d249dbfe8005dfe 100644 (file)
@@ -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 {
index 48e07834aefa5408895ff24d9087cbabb460e564..b889bca6a9d1ffb60edd48b399df71949d03cfee 100644 (file)
@@ -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;
        }