mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-24 21:50:53 +00:00
Ensure that 'logger show channels' works properly when wildcards are used in logger.conf.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@269707 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -730,7 +730,7 @@ static char *handle_logger_show_channels(struct ast_cli_entry *e, int cmd, struc
|
|||||||
chan->disabled ? "Disabled" : "Enabled");
|
chan->disabled ? "Disabled" : "Enabled");
|
||||||
ast_cli(a->fd, " - ");
|
ast_cli(a->fd, " - ");
|
||||||
for (level = 0; level < ARRAY_LEN(levels); level++) {
|
for (level = 0; level < ARRAY_LEN(levels); level++) {
|
||||||
if (chan->logmask & (1 << level)) {
|
if ((chan->logmask & (1 << level)) && levels[level]) {
|
||||||
ast_cli(a->fd, "%s ", levels[level]);
|
ast_cli(a->fd, "%s ", levels[level]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user