From a78b0af5eab65e1567ecd3c9a7151cc4a5030f92 Mon Sep 17 00:00:00 2001 From: Tilghman Lesher Date: Tue, 14 Feb 2012 20:27:16 +0000 Subject: Re-commit the verbose branch. This change permits each verbose destination (consoles, logger) to have its own concept of what the verbosity level is. The big feature here is that the logger will now be able to capture a particular verbosity level without condemning each console to need to suffer that level of verbosity. Additionally, a stray 'core set verbose' will no longer change what will go to the log. Review: https://reviewboard.asterisk.org/r/1599/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@355413 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/loader.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'main/loader.c') diff --git a/main/loader.c b/main/loader.c index 6cd5ffbdb..f9b2de943 100644 --- a/main/loader.c +++ b/main/loader.c @@ -797,8 +797,11 @@ static enum ast_module_load_result start_resource(struct ast_module *mod) case AST_MODULE_LOAD_SUCCESS: if (!ast_fully_booted) { ast_verb(1, "%s => (%s)\n", mod->resource, term_color(tmp, mod->info->description, COLOR_BROWN, COLOR_BLACK, sizeof(tmp))); - if (ast_opt_console && !option_verbose) - ast_verbose( "."); + if (ast_opt_console && !option_verbose) { + /* This never looks good on anything but the root console, so + * it's best not to try to funnel it through the logger. */ + fprintf(stdout, "."); + } } else { ast_verb(1, "Loaded %s => (%s)\n", mod->resource, mod->info->description); } -- cgit v1.2.3