logging_vty: Print 'log filter all' info in 'show logging vty'

When we print information about the current logging configuration,
it makes sense to also print information about the log filters.
This commit is contained in:
Harald Welte 2013-03-10 09:53:24 +00:00
parent 008e53baae
commit 6d2d4d688e
1 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,12 @@ static void vty_print_logtarget(struct vty *vty, const struct log_info *info,
info->cat[i].description,
VTY_NEWLINE);
}
vty_out(vty, " Log Filter 'ALL': %s%s",
tgt->filter_map & LOG_FILTER_ALL ? "Enabled" : "Disabled",
VTY_NEWLINE);
/* FIXME: print application specific filters */
}
#define SHOW_LOG_STR "Show current logging configuration\n"