From: Don Slice Date: Tue, 23 Feb 2016 15:16:23 +0000 (+0000) Subject: BGPD: Make "Bind to connect" messages conditional no debug X-Git-Tag: frr-2.0-rc1~1108^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=d1e5048edb264ea0a71213527fbfc0dba1d83b27;p=matthieu%2Ffrr.git 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 --- 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");