aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-03-10 09:53:24 +0000
committerHarald Welte <laforge@gnumonks.org>2013-03-13 15:16:47 +0100
commit6d2d4d688ef7e32550f4dbe7813c9055c4395aaf (patch)
treed861f5adbd951bbe45557f34161d4f19aa4ba00d /src
parent008e53baaeba1aaf126b11b5c211a1110e9dc087 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/vty/logging_vty.c6
1 files changed, 6 insertions, 0 deletions
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"