chore(beacon): more verbose debug logging (#10496)

Signed-off-by: Marcus B Spencer <marcus@marcusspencer.us>
This commit is contained in:
Marcus B Spencer
2025-12-17 09:04:47 -06:00
committed by GitHub
parent 5800d1acc3
commit e5dfd2c549

View File

@@ -75,6 +75,7 @@ func writeBroadcasts(ctx context.Context, inbox <-chan []byte, port int) error {
if iaddr, ok := addr.(*net.IPNet); ok && len(iaddr.IP) >= 4 && iaddr.IP.IsGlobalUnicast() && iaddr.IP.To4() != nil { if iaddr, ok := addr.(*net.IPNet); ok && len(iaddr.IP) >= 4 && iaddr.IP.IsGlobalUnicast() && iaddr.IP.To4() != nil {
baddr := bcast(iaddr) baddr := bcast(iaddr)
dsts = append(dsts, baddr.IP) dsts = append(dsts, baddr.IP)
slog.Debug("Added broadcast address", slogutil.Address(baddr), "intf", intf.Name, slog.String("intf_flags", intf.Flags.String()))
} }
} }
} }
@@ -84,8 +85,6 @@ func writeBroadcasts(ctx context.Context, inbox <-chan []byte, port int) error {
dsts = append(dsts, net.IP{0xff, 0xff, 0xff, 0xff}) dsts = append(dsts, net.IP{0xff, 0xff, 0xff, 0xff})
} }
l.Debugln("addresses:", dsts)
success := 0 success := 0
for _, ip := range dsts { for _, ip := range dsts {
dst := &net.UDPAddr{IP: ip, Port: port} dst := &net.UDPAddr{IP: ip, Port: port}