[asterisk-commits] pabelanger: trunk r360536 - in /trunk: ./ main/dnsmgr.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Mar 26 16:22:27 CDT 2012
Author: pabelanger
Date: Mon Mar 26 16:22:23 2012
New Revision: 360536
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=360536
Log:
Covert ast_verb() to ast_debug() and increase log level
Rather then flood the CLI with verbose messages, we've changed the level to
debug. This will help keep the CLI clean.
Modified:
trunk/ (props changed)
trunk/main/dnsmgr.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-10-merged' - no diff available.
Modified: trunk/main/dnsmgr.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/dnsmgr.c?view=diff&rev=360536&r1=360535&r2=360536
==============================================================================
--- trunk/main/dnsmgr.c (original)
+++ trunk/main/dnsmgr.c Mon Mar 26 16:22:23 2012
@@ -128,7 +128,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_debug(6, "removing dns manager for '%s'\n", entry->name);
ast_mutex_destroy(&entry->lock);
ast_free(entry);
@@ -157,7 +157,7 @@
return 0;
}
- ast_verb(4, "doing dnsmgr_lookup for '%s'\n", name);
+ ast_debug(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);
@@ -167,7 +167,7 @@
return 0;
}
- ast_verb(3, "adding dns manager for '%s'\n", name);
+ ast_debug(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,9 +194,7 @@
ast_mutex_lock(&entry->lock);
- if (verbose) {
- ast_verb(3, "refreshing '%s'\n", entry->name);
- }
+ ast_debug(6, "refreshing '%s'\n", entry->name);
tmp.ss.ss_family = entry->family;
if (!ast_get_ip_or_srv(&tmp, entry->name, entry->service)) {
@@ -270,7 +268,7 @@
return -1;
}
- ast_verb(3, "Refreshing DNS lookups.\n");
+ ast_debug(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