[asterisk-commits] pabelanger: branch 1.8 r360471 - /branches/1.8/main/dnsmgr.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 26 13:25:48 CDT 2012
Author: pabelanger
Date: Mon Mar 26 13:25:45 2012
New Revision: 360471
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360471
Log:
Increase verbosity level for ast_verb messages
While this does not fix the issue of the CLI being flooded by 'doing
dnsmgr_lookup' messages, increasing the verbosity level above 5 should help
minimize it.
Modified:
branches/1.8/main/dnsmgr.c
Modified: branches/1.8/main/dnsmgr.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/dnsmgr.c?view=diff&rev=360471&r1=360470&r2=360471
==============================================================================
--- branches/1.8/main/dnsmgr.c (original)
+++ branches/1.8/main/dnsmgr.c Mon Mar 26 13:25:45 2012
@@ -127,7 +127,7 @@
AST_RWLIST_WRLOCK(&entry_list);
AST_RWLIST_REMOVE(&entry_list, entry, list);
AST_RWLIST_UNLOCK(&entry_list);
- ast_verb(4, "removing dns manager for '%s'\n", entry->name);
+ ast_verb(6, "removing dns manager for '%s'\n", entry->name);
ast_mutex_destroy(&entry->lock);
ast_free(entry);
@@ -156,17 +156,17 @@
return 0;
}
- ast_verb(4, "doing dnsmgr_lookup for '%s'\n", name);
+ ast_verb(6, "doing dnsmgr_lookup for '%s'\n", name);
/* do a lookup now but add a manager so it will automagically get updated in the background */
ast_get_ip_or_srv(result, name, service);
-
+
/* if dnsmgr is not enable don't bother adding an entry */
if (!enabled) {
return 0;
}
-
- ast_verb(3, "adding dns manager for '%s'\n", name);
+
+ ast_verb(6, "adding dns manager for '%s'\n", name);
*dnsmgr = ast_dnsmgr_get_family(name, result, service, family);
(*dnsmgr)->update_func = func;
(*dnsmgr)->data = data;
@@ -194,7 +194,7 @@
ast_mutex_lock(&entry->lock);
if (verbose) {
- ast_verb(3, "refreshing '%s'\n", entry->name);
+ ast_verb(6, "refreshing '%s'\n", entry->name);
}
tmp.ss.ss_family = entry->family;
@@ -268,7 +268,7 @@
return -1;
}
- ast_verb(3, "Refreshing DNS lookups.\n");
+ ast_verb(6, "Refreshing DNS lookups.\n");
AST_RWLIST_RDLOCK(info->entries);
AST_RWLIST_TRAVERSE(info->entries, entry, list) {
if (info->regex_present && regexec(&info->filter, entry->name, 0, NULL, 0))
More information about the asterisk-commits
mailing list