From 2527290bfd70776e41763e1a9302736ad9f684f9 Mon Sep 17 00:00:00 2001 From: SUNsung Date: Thu, 12 Mar 2026 11:00:20 +0100 Subject: [PATCH] fix core.Logger (#1323) Fixing typo https://github.com/yggdrasil-network/yggdrasil-go/blob/50def9362f481eaae5ab299ed9b0cb1c51a7b87d/src/multicast/multicast.go#L64 I didn't find anywhere else in the project where gologme was mistakenly used instead of core.Logger --- src/multicast/multicast.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/multicast/multicast.go b/src/multicast/multicast.go index 9134501c..49d4af23 100644 --- a/src/multicast/multicast.go +++ b/src/multicast/multicast.go @@ -13,7 +13,6 @@ import ( "time" "github.com/Arceliar/phony" - "github.com/gologme/log" "github.com/wlynxg/anet" "github.com/yggdrasil-network/yggdrasil-go/src/core" @@ -28,7 +27,7 @@ import ( type Multicast struct { phony.Inbox core *core.Core - log *log.Logger + log core.Logger sock *ipv6.PacketConn running atomic.Bool _listeners map[string]*listenerInfo @@ -61,7 +60,7 @@ type listenerInfo struct { // Start starts the multicast interface. This launches goroutines which will // listen for multicast beacons from other hosts and will advertise multicast // beacons out to the network. -func New(core *core.Core, log *log.Logger, opts ...SetupOption) (*Multicast, error) { +func New(core *core.Core, log core.Logger, opts ...SetupOption) (*Multicast, error) { m := &Multicast{ core: core, log: log, @@ -362,7 +361,7 @@ func (m *Multicast) _announce() { } destAddr.Zone = iface.Name if _, err = m.sock.WriteTo(msg, nil, destAddr); err != nil { - m.log.Warn("Failed to send multicast beacon:", err) + m.log.Warnln("Failed to send multicast beacon: " + err.Error()) } if linfo.interval.Seconds() < 15 { linfo.interval += time.Second