From d1e5048edb264ea0a71213527fbfc0dba1d83b27 Mon Sep 17 00:00:00 2001 From: Don Slice Date: Tue, 23 Feb 2016 15:16:23 +0000 Subject: [PATCH] BGPD: Make "Bind to connect" messages conditional no debug Added debug requirement to issue the Bind to connect messages that were filling the logs. Ticket:CM-9463 Signed-off-by: Don Slice Reviewed-by: Donald Sharp --- bgpd/bgp_network.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index ae747332ae..d5ac479876 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -424,7 +424,8 @@ bgp_bind (struct peer *peer) name = (peer->conf_if ? peer->conf_if : (peer->ifname ? peer->ifname : peer->bgp->name)); - zlog_debug ("Binding to interface %s\n", name); + if (bgp_debug_neighbor_events(peer)) + zlog_debug ("%s Binding to interface %s", peer->host, name); if ( bgpd_privs.change (ZPRIVS_RAISE) ) zlog_err ("bgp_bind: could not raise privs"); -- 2.39.5