]> git.puffer.fish Git - mirror/frr.git/commitdiff
BGPD: Make "Bind to connect" messages conditional no debug
authorDon Slice <dslice@cumulusnetworks.com>
Tue, 23 Feb 2016 15:16:23 +0000 (15:16 +0000)
committerDon Slice <dslice@cumulusnetworks.com>
Tue, 23 Feb 2016 15:16:23 +0000 (15:16 +0000)
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

index ae747332ae64a04daf59e9011912a0efa249824c..d5ac4798766098a4a7f1d0d739cc4711c1f85acf 100644 (file)
@@ -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");