mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Allow each logging destination and console to have its own notion of the verbosity level.
Review: https://reviewboard.asterisk.org/r/1599 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -87,9 +87,7 @@ int __ast_bridge_technology_register(struct ast_bridge_technology *technology, s
|
||||
|
||||
AST_RWLIST_UNLOCK(&bridge_technologies);
|
||||
|
||||
if (option_verbose > 1) {
|
||||
ast_verbose(VERBOSE_PREFIX_2 "Registered bridge technology %s\n", technology->name);
|
||||
}
|
||||
ast_verb(2, "Registered bridge technology %s\n", technology->name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -104,9 +102,7 @@ int ast_bridge_technology_unregister(struct ast_bridge_technology *technology)
|
||||
AST_RWLIST_TRAVERSE_SAFE_BEGIN(&bridge_technologies, current, entry) {
|
||||
if (current == technology) {
|
||||
AST_RWLIST_REMOVE_CURRENT(entry);
|
||||
if (option_verbose > 1) {
|
||||
ast_verbose(VERBOSE_PREFIX_2 "Unregistered bridge technology %s\n", technology->name);
|
||||
}
|
||||
ast_verb(2, "Unregistered bridge technology %s\n", technology->name);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user