mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-20 08:40:16 +00:00
Convert 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. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@360536 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -128,7 +128,7 @@ void ast_dnsmgr_release(struct ast_dnsmgr_entry *entry)
|
|||||||
AST_RWLIST_WRLOCK(&entry_list);
|
AST_RWLIST_WRLOCK(&entry_list);
|
||||||
AST_RWLIST_REMOVE(&entry_list, entry, list);
|
AST_RWLIST_REMOVE(&entry_list, entry, list);
|
||||||
AST_RWLIST_UNLOCK(&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_mutex_destroy(&entry->lock);
|
||||||
ast_free(entry);
|
ast_free(entry);
|
||||||
@@ -157,7 +157,7 @@ static int internal_dnsmgr_lookup(const char *name, struct ast_sockaddr *result,
|
|||||||
return 0;
|
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 */
|
/* 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);
|
ast_get_ip_or_srv(result, name, service);
|
||||||
@@ -167,7 +167,7 @@ static int internal_dnsmgr_lookup(const char *name, struct ast_sockaddr *result,
|
|||||||
return 0;
|
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 = ast_dnsmgr_get_family(name, result, service, family);
|
||||||
(*dnsmgr)->update_func = func;
|
(*dnsmgr)->update_func = func;
|
||||||
(*dnsmgr)->data = data;
|
(*dnsmgr)->data = data;
|
||||||
@@ -194,9 +194,7 @@ static int dnsmgr_refresh(struct ast_dnsmgr_entry *entry, int verbose)
|
|||||||
|
|
||||||
ast_mutex_lock(&entry->lock);
|
ast_mutex_lock(&entry->lock);
|
||||||
|
|
||||||
if (verbose) {
|
ast_debug(6, "refreshing '%s'\n", entry->name);
|
||||||
ast_verb(3, "refreshing '%s'\n", entry->name);
|
|
||||||
}
|
|
||||||
|
|
||||||
tmp.ss.ss_family = entry->family;
|
tmp.ss.ss_family = entry->family;
|
||||||
if (!ast_get_ip_or_srv(&tmp, entry->name, entry->service)) {
|
if (!ast_get_ip_or_srv(&tmp, entry->name, entry->service)) {
|
||||||
@@ -270,7 +268,7 @@ static int refresh_list(const void *data)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
ast_verb(3, "Refreshing DNS lookups.\n");
|
ast_debug(6, "Refreshing DNS lookups.\n");
|
||||||
AST_RWLIST_RDLOCK(info->entries);
|
AST_RWLIST_RDLOCK(info->entries);
|
||||||
AST_RWLIST_TRAVERSE(info->entries, entry, list) {
|
AST_RWLIST_TRAVERSE(info->entries, entry, list) {
|
||||||
if (info->regex_present && regexec(&info->filter, entry->name, 0, NULL, 0)) {
|
if (info->regex_present && regexec(&info->filter, entry->name, 0, NULL, 0)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user