From 1b1f7b4f1540a276e4ec6fda3e08c78a9ca5982c Mon Sep 17 00:00:00 2001 From: lynne Date: Fri, 11 Jun 2021 09:53:23 -0400 Subject: 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 --- ospf6d/ospf6_spf.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'ospf6d/ospf6_spf.c') 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; } -- cgit v1.2.3