diff options
author | Matthew Jordan <mjordan@digium.com> | 2014-05-28 22:54:12 +0000 |
---|---|---|
committer | Matthew Jordan <mjordan@digium.com> | 2014-05-28 22:54:12 +0000 |
commit | fb5690ce4b9ff896a56fe9b9eb9eeed1a2b5f028 (patch) | |
tree | 5fc5aa9c8099167cf81dc9cfdadb19ce3aa24743 /main/optional_api.c | |
parent | 812f33d22218817f32ce856969e8196475f6d5fd (diff) |
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
Diffstat (limited to 'main/optional_api.c')
-rw-r--r-- | main/optional_api.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/main/optional_api.c b/main/optional_api.c index f9d5fc68f..92f36eaf9 100644 --- a/main/optional_api.c +++ b/main/optional_api.c @@ -135,7 +135,6 @@ static struct optional_api *optional_api_create(const char *symname) struct optional_api *api; size_t size; - ast_verb(6, "%s: building api object\n", symname); size = sizeof(*api) + strlen(symname) + 1; api = ast_std_calloc(1, size); if (!api) { @@ -219,11 +218,8 @@ static void optional_api_user_relink(struct optional_api_user *user, struct optional_api *api) { if (api->impl && *user->optional_ref != api->impl) { - ast_verb(4, "%s: linking for %s\n", api->symname, user->module); *user->optional_ref = api->impl; } else if (!api->impl && *user->optional_ref != user->stub) { - ast_verb(4, "%s: stubbing for %s\n", api->symname, - user->module); *user->optional_ref = user->stub; } } @@ -252,8 +248,6 @@ void ast_optional_api_provide(const char *symname, ast_optional_fn impl) { struct optional_api *api; - ast_verb(4, "%s: providing\n", symname); - api = get_api(symname); if (!api) { ast_log(LOG_ERROR, "%s: Allocation failed\n", symname); @@ -268,8 +262,6 @@ void ast_optional_api_unprovide(const char *symname, ast_optional_fn impl) { struct optional_api *api; - ast_verb(4, "%s: un-providing\n", symname); - api = get_api(symname); if (!api) { ast_log(LOG_ERROR, "%s: Could not find api\n", symname); @@ -341,8 +333,6 @@ void ast_optional_api_unuse(const char *symname, ast_optional_fn *optional_ref, if (user->optional_ref == optional_ref) { if (*user->optional_ref != user->stub) { - ast_verb(4, "%s: stubbing for %s\n", symname, - module); *user->optional_ref = user->stub; } |