From ef35f62f04990d9ea2f817e6aa80cb3d48b3a8dd Mon Sep 17 00:00:00 2001 From: KillMaster9 Date: Fri, 22 Dec 2023 19:03:51 +0800 Subject: [PATCH] fix speaker log (#3487) --- pkg/speaker/subnet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/speaker/subnet.go b/pkg/speaker/subnet.go index 23ec2522f7c..0507d1f5a09 100644 --- a/pkg/speaker/subnet.go +++ b/pkg/speaker/subnet.go @@ -150,7 +150,7 @@ func (c *Controller) syncSubnetRoutes() { for _, path := range d.Paths { attrInterfaces, _ := bgpapiutil.UnmarshalPathAttributes(path.Pattrs) nextHop := getNextHopFromPathAttributes(attrInterfaces) - klog.V(5).Infof("nexthop is %s, routerID is %s", nextHop.String(), c.config.RouterID) + klog.V(5).Infof("the route Prefix is %s, NextHop is %s", d.Prefix, nextHop.String()) ipFamily := util.CheckProtocol(nextHop.String()) route, _ := netlink.RouteGet(nextHop) if len(route) == 1 && route[0].Type == unix.RTN_LOCAL || nextHop.String() == c.config.RouterID {