summaryrefslogtreecommitdiff
path: root/main/logger.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/logger.c')
-rw-r--r--main/logger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/logger.c b/main/logger.c
index 53b7bb3df..cd7d7a3ed 100644
--- a/main/logger.c
+++ b/main/logger.c
@@ -730,7 +730,7 @@ static char *handle_logger_show_channels(struct ast_cli_entry *e, int cmd, struc
chan->disabled ? "Disabled" : "Enabled");
ast_cli(a->fd, " - ");
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]);
}
}