[svn-commits] pabelanger: branch 10 r360472 - in /branches/10: ./ main/dnsmgr.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Mar 26 13:26:54 CDT 2012
Author: pabelanger
Date: Mon Mar 26 13:26:51 2012
New Revision: 360472
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360472
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.
........
Merged revisions 360471 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/10/ (props changed)
branches/10/main/dnsmgr.c
Propchange: branches/10/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/10/main/dnsmgr.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/dnsmgr.c?view=diff&rev=360472&r1=360471&r2=360472
==============================================================================
--- branches/10/main/dnsmgr.c (original)
+++ branches/10/main/dnsmgr.c Mon Mar 26 13:26:51 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 svn-commits
mailing list