diff options
author | lynne <lynne@voltanet.io> | 2021-06-11 15:53:23 +0200 |
---|---|---|
committer | lynne <lynne@voltanet.io> | 2021-06-14 21:46:49 +0200 |
commit | 1b1f7b4f1540a276e4ec6fda3e08c78a9ca5982c (patch) | |
tree | 9449a60b65d89e5cebe50fbb1c2e771e2fd2e780 /ospf6d/ospf6_spf.c | |
parent | Merge pull request #8831 from sworleys/Fix-No-Ospf-Func (diff) | |
download | frr-1b1f7b4f1540a276e4ec6fda3e08c78a9ca5982c.tar.xz frr-1b1f7b4f1540a276e4ec6fda3e08c78a9ca5982c.zip |
ospf6d: move error logs out from behind debug flags
The logging in ospf6 is very verbose. If you turn on logging on a scaled
system you get too many logs. The problem is that there are some errors
that occur that are hidden behind the debug flags, and to see these errors
we currently need to turn on the debug logging. This change converts these
error logs to warnings and removes the debug flags.
Signed-off-by: Lynne Morrison <lynne@voltanet.io>
Diffstat (limited to 'ospf6d/ospf6_spf.c')
-rw-r--r-- | ospf6d/ospf6_spf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ospf6d/ospf6_spf.c b/ospf6d/ospf6_spf.c index f995dd939..032484e28 100644 --- a/ospf6d/ospf6_spf.c +++ b/ospf6d/ospf6_spf.c @@ -284,9 +284,7 @@ static void ospf6_nexthop_calc(struct ospf6_vertex *w, struct ospf6_vertex *v, oi = ospf6_interface_lookup_by_ifindex(ifindex, ospf6->vrf_id); if (oi == NULL) { - if (IS_OSPF6_DEBUG_SPF(PROCESS)) - zlog_debug("Can't find interface in SPF: ifindex %d", - ifindex); + zlog_warn("Can't find interface in SPF: ifindex %d", ifindex); return; } @@ -475,9 +473,7 @@ void ospf6_spf_calculation(uint32_t router_id, /* construct root vertex */ lsa = ospf6_create_single_router_lsa(oa, oa->lsdb_self, router_id); if (lsa == NULL) { - if (IS_OSPF6_DEBUG_SPF(PROCESS)) - zlog_debug("%s: No router LSA for area %s", __func__, - oa->name); + zlog_warn("%s: No router LSA for area %s", __func__, oa->name); return; } |