diff options
| author | vdhingra <vdhingra@vmware.com> | 2019-08-23 05:28:43 -0700 |
|---|---|---|
| committer | vdhingra <vdhingra@vmware.com> | 2019-09-19 02:59:04 -0700 |
| commit | 14a4d9d0476bd950cfb7d3b94b050d15d1a8169d (patch) | |
| tree | 7f574b7038b2f129ad6b629a7fcace91c6c2350b /zebra/zebra_rnh.c | |
| parent | 16296beaa5ff0b51e1b9e88848206dcea5cd2a32 (diff) | |
Zebra: Rectifying the log messages.
This change addresses the following :
1. Ensures zlog_debug should be under DEBUG macro check
2. Ensures zlog_err and zlog_warn wherever applicable.
3. Removed few posivite logs from fpm handling, whose frequency is high.
Signed-off-by: vishaldhingra <vdhingra@vmware.com>
Diffstat (limited to 'zebra/zebra_rnh.c')
| -rw-r--r-- | zebra/zebra_rnh.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_rnh.c b/zebra/zebra_rnh.c index bcaf1b5204..5df5d94f4b 100644 --- a/zebra/zebra_rnh.c +++ b/zebra/zebra_rnh.c @@ -337,7 +337,7 @@ static void addr2hostprefix(int af, const union g_addr *addr, break; default: memset(prefix, 0, sizeof(*prefix)); - zlog_debug("%s: unknown address family %d", __func__, af); + zlog_warn("%s: unknown address family %d", __func__, af); break; } } @@ -916,7 +916,8 @@ void zebra_print_rnh_table(vrf_id_t vrfid, afi_t afi, struct vty *vty, table = get_rnh_table(vrfid, afi, type); if (!table) { - zlog_debug("print_rnhs: rnh table not found"); + if (IS_ZEBRA_DEBUG_NHT) + zlog_debug("print_rnhs: rnh table not found"); return; } |
