From 3e97827f9ff460c73fa3ae4d7feb6a53a351bbf1 Mon Sep 17 00:00:00 2001 From: Vadym Vikulin Date: Wed, 19 Jun 2024 11:10:49 +0300 Subject: [PATCH] Revert "More debug messages" This reverts commit 56a713db0765ca281651ca63c35fe9f7d8004be7. --- src/multicast/multicast.go | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/multicast/multicast.go b/src/multicast/multicast.go index 1c380ad18..81c79ff4f 100644 --- a/src/multicast/multicast.go +++ b/src/multicast/multicast.go @@ -88,8 +88,8 @@ func (m *Multicast) _start() error { if !anyEnabled { return nil } - m.log.Infoln("Starting multicast module") - defer m.log.Infoln("Started multicast module") + m.log.Debugln("Starting multicast module") + defer m.log.Debugln("Started multicast module") addr, err := net.ResolveUDPAddr("udp", string(m.config._groupAddr)) if err != nil { return err @@ -98,7 +98,6 @@ func (m *Multicast) _start() error { lc := net.ListenConfig{ Control: m.multicastReuse, } - m.log.Infoln("Starting to listen packet") conn, err := lc.ListenPacket(context.Background(), "udp6", listenString) if err != nil { return err @@ -131,7 +130,7 @@ func (m *Multicast) Stop() error { phony.Block(m, func() { err = m._stop() }) - m.log.Infoln("Stopped multicast module") + m.log.Debugln("Stopped multicast module") return err } @@ -239,7 +238,7 @@ func (m *Multicast) _announce() { stop := func() { info.listener.Close() delete(m._listeners, name) - m.log.Infoln("No longer multicasting on", name) + m.log.Debugln("No longer multicasting on", name) } // If the interface is no longer visible on the system then stop the // listener, as another one will be started further down @@ -305,7 +304,7 @@ func (m *Multicast) _announce() { panic(err) } if li, err := m.core.Listen(u, iface.Name); err == nil { - m.log.Infoln("Started multicasting on", iface.Name) + m.log.Debugln("Started multicasting on", iface.Name) // Store the listener so that we can stop it later if needed linfo = &listenerInfo{listener: li, time: time.Now(), port: info.port} m._listeners[iface.Name] = linfo @@ -404,10 +403,10 @@ func (m *Multicast) listen() { pin := fmt.Sprintf("/?key=%s&priority=%d", hex.EncodeToString(key), info.priority) u, err := url.Parse("tls://" + addr.String() + pin) if err != nil { - m.log.Infoln("Call from multicast failed, parse error:", addr.String(), err) + m.log.Debugln("Call from multicast failed, parse error:", addr.String(), err) } if err := m.core.CallPeer(u, from.Zone); err != nil { - m.log.Infoln("Call from multicast failed:", err) + m.log.Debugln("Call from multicast failed:", err) } } }