After reading Russell's e-mail to the dev list stating that checking option_verbose is not

equivalent to the check done by ast_verb, I wrote a macro, VERBOSITY_LEVEL, which does this
check. I did a quick look in the source and used this macro in some places where option_verbose
was used.

I also converted some verbose messages in logger.c to use ast_verb instead of ast_verbose.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@93042 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Michelson
2007-12-14 18:47:44 +00:00
parent f5a9e958d1
commit 4f75e15665
5 changed files with 8 additions and 8 deletions

View File

@@ -2649,7 +2649,7 @@ static int pbx_extension_helper(struct ast_channel *c, struct ast_context *con,
c->priority = priority;
pbx_substitute_variables(passdata, sizeof(passdata), c, e);
ast_debug(1, "Launching '%s'\n", app->name);
if (option_verbose > 2) {
if (VERBOSITY_LEVEL(2)) {
char tmp[80], tmp2[80], tmp3[EXT_DATA_SIZE];
ast_verb(3, "Executing [%s@%s:%d] %s(\"%s\", \"%s\") %s\n",
exten, context, priority,