From dc55eac874fd724f2ff4caedd1522ee1b7906026 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 33c2e8b96a9..84da2978e93 100644 --- a/pkg/speaker/subnet.go +++ b/pkg/speaker/subnet.go @@ -100,7 +100,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 {