Parcourir la source

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

Signed-off-by: Marcus B Spencer <[email protected]>
Marcus B Spencer il y a 1 semaine
Parent
commit
e5dfd2c549
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      lib/beacon/broadcast.go

+ 1 - 2
lib/beacon/broadcast.go

@@ -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 {
 					baddr := bcast(iaddr)
 					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})
 		}
 
-		l.Debugln("addresses:", dsts)
-
 		success := 0
 		for _, ip := range dsts {
 			dst := &net.UDPAddr{IP: ip, Port: port}