diff options
| author | Chirag Shah <chirag@cumulusnetworks.com> | 2017-12-26 09:45:25 -0800 | 
|---|---|---|
| committer | Chirag Shah <chirag@cumulusnetworks.com> | 2017-12-27 10:13:38 -0800 | 
| commit | 05ba78e4d9522ebc10bdd9312fb8c004feb3ea24 (patch) | |
| tree | b30896c07621d72939a3426c772f54d86e34ecf3 /ospfd/ospf_network.c | |
| parent | ff99c5b2bb523560108f68f9251dcd93a1b9d7ee (diff) | |
ospfd: Set filter to unbound debug logs
Ticket:CM-19213
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_network.c')
| -rw-r--r-- | ospfd/ospf_network.c | 20 | 
1 files changed, 11 insertions, 9 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index ed5e8e027d..022a5a138a 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -38,7 +38,7 @@  #include "ospfd/ospf_lsdb.h"  #include "ospfd/ospf_neighbor.h"  #include "ospfd/ospf_packet.h" - +#include "ospfd/ospf_dump.h"  /* Join to the OSPF ALL SPF ROUTERS multicast group. */  int ospf_if_add_allspfrouters(struct ospf *top, struct prefix *p, @@ -56,10 +56,11 @@ int ospf_if_add_allspfrouters(struct ospf *top, struct prefix *p,  			"on # of multicast group memberships has been exceeded?",  			top->fd, inet_ntoa(p->u.prefix4), ifindex,  			safe_strerror(errno)); -	else -		zlog_debug( -			"interface %s [%u] join AllSPFRouters Multicast group.", -			inet_ntoa(p->u.prefix4), ifindex); +	else { +		if (IS_DEBUG_OSPF_EVENT) +			zlog_debug("interface %s [%u] join AllSPFRouters Multicast group.", +				   inet_ntoa(p->u.prefix4), ifindex); +	}  	return ret;  } @@ -78,10 +79,11 @@ int ospf_if_drop_allspfrouters(struct ospf *top, struct prefix *p,  			"ifindex %u, AllSPFRouters): %s",  			top->fd, inet_ntoa(p->u.prefix4), ifindex,  			safe_strerror(errno)); -	else -		zlog_debug( -			"interface %s [%u] leave AllSPFRouters Multicast group.", -			inet_ntoa(p->u.prefix4), ifindex); +	else { +		if (IS_DEBUG_OSPF_EVENT) +			zlog_debug("interface %s [%u] leave AllSPFRouters Multicast group.", +				   inet_ntoa(p->u.prefix4), ifindex); +	}  	return ret;  }  | 
