From 6d2d4d688ef7e32550f4dbe7813c9055c4395aaf Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 10 Mar 2013 09:53:24 +0000 Subject: 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. --- src/vty/logging_vty.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/vty/logging_vty.c b/src/vty/logging_vty.c index ace346a2..fc1ca430 100644 --- a/src/vty/logging_vty.c +++ b/src/vty/logging_vty.c @@ -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" -- cgit v1.2.3