From fb5690ce4b9ff896a56fe9b9eb9eeed1a2b5f028 Mon Sep 17 00:00:00 2001 From: Matthew Jordan Date: Wed, 28 May 2014 22:54:12 +0000 Subject: Logger/CLI/etc.: Fix some aesthetic issues; reduce chatty verbose messages This patch addresses some aesthetic issues in Asterisk. These are all just minor tweaks to improve the look of the CLI when used in a variety of settings. Specifically: * A number of chatty verbose messages were removed or demoted to DEBUG messages. Verbose messages with a verbosity level of 5 or higher were - if kept as verbose messages - demoted to level 4. Several messages that were emitted at verbose level 3 were demoted to 4, as announcement of dialplan applications being executed occur at level 3 (and so the effects of those applications should generally be less). * Some verbose messages that only appear when their respective 'debug' options are enabled were bumped up to always be displayed. * Prefix/timestamping of verbose messages were moved to the verboser handlers. This was done to prevent duplication of prefixes when the timestamp option (-T) is used with the CLI. * Verbose magic is removed from messages before being emitted to non-verboser handlers. This prevents the magic in multi-line verbose messages (such as SIP debug traces or the output of DumpChan) from being written to files. * _Slightly_ better support for the "light background" option (-W) was added. This includes using ast_term_quit in the output of XML documentation help, as well as changing the "Asterisk Ready" prompt to bright green on the default background (which stands a better chance of being displayed properly than bright white). Review: https://reviewboard.asterisk.org/r/3547/ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@414798 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/config_options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/config_options.c') diff --git a/main/config_options.c b/main/config_options.c index a52a9da25..ae40c6289 100644 --- a/main/config_options.c +++ b/main/config_options.c @@ -1191,7 +1191,7 @@ static void cli_show_module_options(struct ast_cli_args *a) ast_cli(a->fd, "\n"); } term_color(option_name, tmp->ref, COLOR_MAGENTA, COLOR_BLACK, sizeof(option_name)); - ast_cli(a->fd, "[%s%s]\n", option_name, term_end()); + ast_cli(a->fd, "[%s%s]\n", option_name, ast_term_reset()); if (ast_str_strlen(tmp->syntax)) { ast_cli(a->fd, "%s\n", ast_xmldoc_printable(ast_str_buffer(tmp->syntax), 1)); } -- cgit v1.2.3