[asterisk-commits] mmichelson: branch group/CCSS r220296 - /team/group/CCSS/main/ccss.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Sep 24 15:07:17 CDT 2009


Author: mmichelson
Date: Thu Sep 24 15:07:14 2009
New Revision: 220296

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=220296
Log:
Get rid of some less-than-useful debug messages.

When trying to diagnose a problem, it doesn't really help
to see the message "SANDWICH" appear on the screen.


Modified:
    team/group/CCSS/main/ccss.c

Modified: team/group/CCSS/main/ccss.c
URL: http://svnview.digium.com/svn/asterisk/team/group/CCSS/main/ccss.c?view=diff&rev=220296&r1=220295&r2=220296
==============================================================================
--- team/group/CCSS/main/ccss.c (original)
+++ team/group/CCSS/main/ccss.c Thu Sep 24 15:07:14 2009
@@ -141,12 +141,14 @@
 
 static void prune_links(struct ast_cc_monitor *monitor, const int core_id, struct ast_cc_monitor_link *link_parent);
 
+#if 0
 static int print_debug(void *obj, void *args, int flags)
 {
 	struct ast_cc_monitor *monitor = obj;
 	ast_log(LOG_NOTICE, "%s is in the container\n", monitor->interface->name);
 	return 0;
 }
+#endif
 
 struct ast_taskprocessor *cc_core_taskprocessor;
 struct ast_sched_thread *cc_sched_thread;
@@ -469,7 +471,6 @@
 	struct ast_cc_interface_tree *cc_interface_tree = data;
 	struct ast_cc_tree_item *tree_item;
 	while ((tree_item = AST_LIST_REMOVE_HEAD(cc_interface_tree, next))) {
-		ast_log(LOG_NOTICE, "Gonna free interface named '%s' with id %d\n", tree_item->interface->name, tree_item->id);
 		ast_cc_tree_item_destroy(tree_item);
 	}
 }
@@ -811,7 +812,6 @@
 	char *context;
 	char *exten;
 	const char *callback_macro = ast_get_cc_callback_macro(agent->cc_params);
-	ast_log(LOG_NOTICE, "Now we should callback %s\n", agent->interface);
 	tech = interface;
 	if ((target = strchr(interface, '/'))) {
 		*target++ = '\0';
@@ -910,16 +910,16 @@
 		return NULL;
 	}
 
-	ast_log(LOG_NOTICE, "SANDWICH!\n");
 	monitor->interface = cc_ref(cc_interface, "monitor gains reference to interface");
-	ast_log(LOG_NOTICE, "SANDWICH AGAIN!\n");
 	monitor->callbacks = callbacks;
 	monitor->callbacks->init(monitor, core_id);
 	AST_LIST_HEAD_INIT(&monitor->child_links);
 	AST_LIST_HEAD_INIT(&monitor->parent_links);
 	ast_log(LOG_NOTICE, "Created new monitor named %s of type %s\n", monitor->interface->name, monitor->interface->monitor_type);
 	ao2_t_link(cc_monitors, monitor, "Link monitor into container");
+#if 0
 	ao2_callback(cc_monitors, OBJ_NODATA, print_debug, NULL);
+#endif
 	return monitor;
 }
 
@@ -1025,7 +1025,9 @@
 {
 	struct ast_cc_monitor_link *link_iter;
 	ast_log(LOG_NOTICE, "Prune links called for monitor %s\n", monitor->interface->name);
+#if 0
 	ao2_callback(cc_monitors, OBJ_NODATA, print_debug, NULL);
+#endif
 	AST_LIST_TRAVERSE_SAFE_BEGIN(&monitor->child_links, link_iter, next_child) {
 		if (link_iter->core_id == core_id) {
 			prune_links(link_iter->child, core_id, link_iter);
@@ -1035,7 +1037,6 @@
 		}
 	}
 	AST_LIST_TRAVERSE_SAFE_END;
-	ast_log(LOG_NOTICE, "Finished traversing children of monitor %s\n", monitor->interface->name);
 
 	if (link_parent) {
 		ast_log(LOG_NOTICE, "Removing parent link from monitor %s\n", monitor->interface->name);
@@ -1048,7 +1049,6 @@
 		ast_log(LOG_NOTICE, "Not unlinking monitor %s because it is the root\n", monitor->interface->name);
 		return;
 	}
-	ast_log(LOG_NOTICE, "Just a checkpoint. In prune_links for monitor %s\n", monitor->interface->name);
 	if (AST_LIST_EMPTY(&monitor->parent_links) &&
 			AST_LIST_EMPTY(&monitor->child_links)) {
 		/* This should cause the monitor's destructor




More information about the asterisk-commits mailing list