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
This commit is contained in:
Don Slice 2016-02-23 15:16:23 +00:00
parent 69593b97df
commit d1e5048edb

View File

@ -424,7 +424,8 @@ bgp_bind (struct peer *peer)
name = (peer->conf_if ? peer->conf_if : (peer->ifname ? peer->ifname : peer->bgp->name)); 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) ) if ( bgpd_privs.change (ZPRIVS_RAISE) )
zlog_err ("bgp_bind: could not raise privs"); zlog_err ("bgp_bind: could not raise privs");