diff options
author | Harald Welte <laforge@gnumonks.org> | 2013-03-10 09:53:24 +0000 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2013-03-13 15:16:47 +0100 |
commit | 6d2d4d688ef7e32550f4dbe7813c9055c4395aaf (patch) | |
tree | d861f5adbd951bbe45557f34161d4f19aa4ba00d /src | |
parent | 008e53baaeba1aaf126b11b5c211a1110e9dc087 (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.c | 6 |
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" |