diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-11-29 18:43:16 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2011-11-29 18:43:16 +0000 |
commit | 77b670c4ab62db2fa2386e15aa6ae4860bb401c9 (patch) | |
tree | fba9c5d22c4c3dea695dac6c51a49316f6381b4d /main/cli.c | |
parent | d7dec4f14fc018d18ed480358f9a265b81b230b9 (diff) |
Allow each logging destination and console to have its own notion of the verbosity level.
Review: https://reviewboard.asterisk.org/r/1599
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@346391 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/main/cli.c b/main/cli.c index c35b941d1..9c66b6767 100644 --- a/main/cli.c +++ b/main/cli.c @@ -382,6 +382,20 @@ static char *complete_number(const char *partial, unsigned int min, unsigned int return NULL; } +static char *handle_localverbose(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) +{ + switch (cmd) { + case CLI_INIT: + e->command = "remote set verbose"; + e->usage = "Usage: remote set verbose <level>\n"; + return NULL; + case CLI_GENERATE: + return NULL; + } + ast_cli(a->fd, "This is the main console. Use 'core set verbose' instead.\n"); + return CLI_FAILURE; +} + static char *handle_verbose(struct ast_cli_entry *e, int cmd, struct ast_cli_args *a) { int oldval; @@ -1668,6 +1682,8 @@ static struct ast_cli_entry cli_cli[] = { AST_CLI_DEFINE(handle_showchan, "Display information on a specific channel"), + AST_CLI_DEFINE(handle_localverbose, "Set level of remote console verbosity"), + AST_CLI_DEFINE(handle_core_set_debug_channel, "Enable/disable debugging on a channel"), AST_CLI_DEFINE(handle_verbose, "Set level of debug/verbose chattiness"), |