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 e2b6442..09f2d13 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 4077029..0b8a379 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 48e0783..b889bca 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;
        }