mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +00:00
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
This commit is contained in:
16
main/cli.c
16
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"),
|
||||
|
Reference in New Issue
Block a user