Skip to content

Commit 7a72925

Browse files
authored
Merge pull request #173 from telekom/fix/logging-bug
Fix logging of wrong object leading to panic
2 parents 6b4804b + dc37d68 commit 7a72925

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/anycast/anycast.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func syncInterfaceByFamily(intf *netlink.Bridge, family int, routingTable uint32
119119
if !containsIPNetwork(alreadyV4Existing, ipnet) {
120120
route := buildRoute(family, intf, ipnet, routingTable)
121121
if err := toolkit.RouteAdd(route); err != nil {
122-
logger.Error(err, "error adding route", "route", routes[i])
122+
logger.Error(err, "error adding route", "route", route.String())
123123
}
124124
}
125125
}

0 commit comments

Comments
 (0)