diff options
author | Chirag Shah <chirag@cumulusnetworks.com> | 2017-12-26 18:45:25 +0100 |
---|---|---|
committer | Chirag Shah <chirag@cumulusnetworks.com> | 2017-12-27 19:13:38 +0100 |
commit | 05ba78e4d9522ebc10bdd9312fb8c004feb3ea24 (patch) | |
tree | b30896c07621d72939a3426c772f54d86e34ecf3 /ospfd/ospf_nsm.c | |
parent | Merge pull request #1551 from LabNConsulting/working/master/minor-perf (diff) | |
download | frr-05ba78e4d9522ebc10bdd9312fb8c004feb3ea24.tar.xz frr-05ba78e4d9522ebc10bdd9312fb8c004feb3ea24.zip |
ospfd: Set filter to unbound debug logs
Ticket:CM-19213
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_nsm.c')
-rw-r--r-- | ospfd/ospf_nsm.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ospfd/ospf_nsm.c b/ospfd/ospf_nsm.c index a0ff2bfcc..c87001294 100644 --- a/ospfd/ospf_nsm.c +++ b/ospfd/ospf_nsm.c @@ -702,12 +702,12 @@ static void nsm_change_state(struct ospf_neighbor *nbr, int state) oi->ospf); } - zlog_info( - "nsm_change_state(%s, %s -> %s): " - "scheduling new router-LSA origination", - inet_ntoa(nbr->router_id), - lookup_msg(ospf_nsm_state_msg, old_state, NULL), - lookup_msg(ospf_nsm_state_msg, state, NULL)); + if (CHECK_FLAG(oi->ospf->config, OSPF_LOG_ADJACENCY_DETAIL)) + zlog_info("%s:(%s, %s -> %s): " + "scheduling new router-LSA origination", + __PRETTY_FUNCTION__, inet_ntoa(nbr->router_id), + lookup_msg(ospf_nsm_state_msg, old_state, NULL), + lookup_msg(ospf_nsm_state_msg, state, NULL)); ospf_router_lsa_update_area(oi->area); |