Drop the debug level for logging fd creation to DEBUG_DEBUG
authorRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 3 Feb 2010 19:37:41 +0000 (06:37 +1100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Wed, 3 Feb 2010 19:37:41 +0000 (06:37 +1100)
common/system_linux.c
server/ctdb_lockwait.c
server/ctdb_logging.c
server/ctdb_persistent.c
server/ctdb_recover.c
server/ctdb_recoverd.c
server/ctdb_traverse.c
server/ctdb_vacuum.c
tcp/tcp_connect.c

index d8229debb7a6cb57ddf15c5205cd3a1936e98422..b8aace422ad429e02355c8f54b5d65efd43801f5 100644 (file)
@@ -186,7 +186,7 @@ int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface)
                        return -1;
                }
 
-               DEBUG(DEBUG_NOTICE, (__location__ " Created SOCKET FD:%d for sending arp\n", s));
+               DEBUG(DEBUG_DEBUG, (__location__ " Created SOCKET FD:%d for sending arp\n", s));
                strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));
                if (ioctl(s, SIOCGIFINDEX, &ifr) < 0) {
                        DEBUG(DEBUG_CRIT,(__location__ " interface '%s' not found\n", iface));
@@ -427,7 +427,7 @@ int ctdb_sys_open_capture_socket(const char *iface, void **private_data)
                return -1;
        }
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created RAW SOCKET FD:%d for tcp tickle\n", s));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created RAW SOCKET FD:%d for tcp tickle\n", s));
 
        set_nonblocking(s);
        set_close_on_exec(s);
index e02cd21a9443224fb1a64918e559e04c16c4c4d1..afbb921439e3fd51bf822568cd5dc2bbf503a6a1 100644 (file)
@@ -148,7 +148,7 @@ struct lockwait_handle *ctdb_lockwait(struct ctdb_db_context *ctdb_db,
        close(result->fd[1]);
        set_close_on_exec(result->fd[0]);
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created PIPE FD:%d to child lockwait process\n", result->fd[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d to child lockwait process\n", result->fd[0]));
 
        talloc_set_destructor(result, lockwait_destructor);
 
index 56dcfa28576ae85567a96c9cb5e32274511ea9c5..a7ca1a1df99aeba36437779e5872aa8622dcee2a 100644 (file)
@@ -530,7 +530,7 @@ int ctdb_set_child_logging(struct ctdb_context *ctdb)
                     ctdb_log_handler, ctdb->log);
        ctdb->log->pfd = p[0];
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created PIPE FD:%d for logging\n", p[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d for logging\n", p[0]));
 
        return 0;
 }
index b686cbdee86ed2ba3af60d710849c0ec293154a4..d38aa8d9e775539522ba610cfc8c4eadd1ca5863 100644 (file)
@@ -563,7 +563,7 @@ struct childwrite_handle *ctdb_childwrite(struct ctdb_db_context *ctdb_db,
 
        talloc_set_destructor(result, childwrite_destructor);
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created PIPE FD:%d for ctdb_childwrite\n", result->fd[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d for ctdb_childwrite\n", result->fd[0]));
 
        result->fde = event_add_fd(ctdb_db->ctdb->ev, result, result->fd[0],
                                   EVENT_FD_READ|EVENT_FD_AUTOCLOSE, childwrite_handler,
index ecc01e6206ca267ec982a07806489c651c44138d..9020363016e11b785fc4060d308ac6ee6e9b10b1 100644 (file)
@@ -748,7 +748,7 @@ int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb,
 
        talloc_set_destructor(state, set_recmode_destructor);
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created PIPE FD:%d for setrecmode\n", state->fd[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d for setrecmode\n", state->fd[0]));
 
        state->te = event_add_timed(ctdb->ev, state, timeval_current_ofs(5, 0),
                                    ctdb_set_recmode_timeout, state);
index f910b3ec69df974c790f91c8d384e5979ac78286..ebcca1b45d14179ad88da90711a03a97c0717ace 100644 (file)
@@ -3496,7 +3496,7 @@ int ctdb_start_recoverd(struct ctdb_context *ctdb)
                exit(1);
        }
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created PIPE FD:%d to recovery daemon\n", fd[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d to recovery daemon\n", fd[0]));
 
        event_add_fd(ctdb->ev, ctdb, fd[0], EVENT_FD_READ|EVENT_FD_AUTOCLOSE, 
                     ctdb_recoverd_parent, &fd[0]);     
index 26d43280629121e5accd2efe5ba32f71f51b833f..2c33387d690a71db83649baf42b5a3a37188f149 100644 (file)
@@ -186,7 +186,7 @@ static struct ctdb_traverse_local_handle *ctdb_traverse_local(struct ctdb_db_con
          setup a packet queue between the child and the parent. This
          copes with all the async and packet boundary issues
         */
-       DEBUG(DEBUG_NOTICE, (__location__ " Created PIPE FD:%d to child traverse\n", h->fd[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d to child traverse\n", h->fd[0]));
 
        h->queue = ctdb_queue_setup(ctdb_db->ctdb, h, h->fd[0], 0, ctdb_traverse_local_handler, h);
        if (h->queue == NULL) {
index 22f4127375208059765da9a974bb407a3b7e1b52..7627fdd6ea1e55526536b80b706d756df81602fe 100644 (file)
@@ -867,7 +867,7 @@ ctdb_vacuum_event(struct event_context *ev, struct timed_event *te,
                timeval_current_ofs(ctdb->tunable.vacuum_max_run_time, 0),
                vacuum_child_timeout, child_ctx);
 
-       DEBUG(DEBUG_INFO, (__location__ " Created PIPE FD:%d to child vacuum process\n", child_ctx->fd[0]));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created PIPE FD:%d to child vacuum process\n", child_ctx->fd[0]));
 
        event_add_fd(ctdb->ev, child_ctx, child_ctx->fd[0],
                EVENT_FD_READ|EVENT_FD_AUTOCLOSE,
index e1c927d804934a86a35fb2adad7ac154e6797d88..43ce85019bf3f9f8d758ec9d0e12c71fe7ec6000 100644 (file)
@@ -258,7 +258,7 @@ static void ctdb_listen_event(struct event_context *ev, struct fd_event *fde,
        set_nonblocking(in->fd);
        set_close_on_exec(in->fd);
 
-       DEBUG(DEBUG_NOTICE, (__location__ " Created SOCKET FD:%d to incoming ctdb connection\n", fd));
+       DEBUG(DEBUG_DEBUG, (__location__ " Created SOCKET FD:%d to incoming ctdb connection\n", fd));
 
         setsockopt(in->fd,SOL_SOCKET,SO_KEEPALIVE,(char *)&one,sizeof(one));