From b46b5078d935ec2f87def04efe3598d886c0835f Mon Sep 17 00:00:00 2001 From: ehsan shariati Date: Wed, 15 Nov 2023 20:08:36 -0500 Subject: [PATCH] Update announcements.go --- announcements/announcements.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/announcements/announcements.go b/announcements/announcements.go index 93409fd8..16d5b8e9 100644 --- a/announcements/announcements.go +++ b/announcements/announcements.go @@ -76,14 +76,14 @@ func (an *FxAnnouncements) Start(ctx context.Context, validator pubsub.Validator // Parse the multiaddr ma, err := multiaddr.NewMultiaddr(relay) if err != nil { - fmt.Println("Error parsing multiaddr:", err) + log.Warnln("Error parsing multiaddr:", err) continue } // Extract the peer ID addrInfo, err := peer.AddrInfoFromP2pAddr(ma) if err != nil { - fmt.Println("Error extracting peer ID:", err) + log.Warnln("Error extracting peer ID:", err) continue } if addrInfo != nil {