dect
/
asterisk
Archived
13
0
Fork 0

Fix small verboseness bugs (bug #2602)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3946 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-10-08 04:23:22 +00:00
parent 43607fa18c
commit 99d5bcb07e
2 changed files with 2 additions and 2 deletions

2
cli.c
View File

@ -148,7 +148,7 @@ static int handle_set_verbose(int fd, int argc, char *argv[])
ast_cli(fd, "Verbosity was %d and is now %d\n", oldval, option_verbose);
else if (oldval > 0 && option_verbose > 0)
ast_cli(fd, "Verbosity is atleast %d\n", option_verbose);
else if (oldval > 0 && option_debug == 0)
else if (oldval > 0 && option_verbose == 0)
ast_cli(fd, "Verbosity is now OFF\n");
return RESULT_SUCCESS;
}

2
pbx.c
View File

@ -1285,7 +1285,7 @@ static int pbx_extension_helper(struct ast_channel *c, struct ast_context *con,
pbx_substitute_variables(passdata, sizeof(passdata), c, e);
if (option_debug)
ast_log(LOG_DEBUG, "Launching '%s'\n", app->name);
else if (option_verbose > 2)
if (option_verbose > 2)
ast_verbose( VERBOSE_PREFIX_3 "Executing %s(\"%s\", \"%s\") %s\n",
term_color(tmp, app->name, COLOR_BRCYAN, 0, sizeof(tmp)),
term_color(tmp2, c->name, COLOR_BRMAGENTA, 0, sizeof(tmp2)),