diff --git a/announcements/announcements.go b/announcements/announcements.go index 2f4b682..16bb30b 100644 --- a/announcements/announcements.go +++ b/announcements/announcements.go @@ -163,7 +163,7 @@ func (an *FxAnnouncements) HandleAnnouncements(ctx context.Context) { continue } if from == an.h.ID() { - log.Debug("Ignoring announcement from self") + //log.Debug("Ignoring announcement from self") continue } a := &Announcement{} @@ -228,7 +228,7 @@ func (an *FxAnnouncements) AnnounceIExistPeriodically(ctx context.Context) { log.Errorw("Failed to publish iexist announcement", "err", err) continue } - log.Debugw("Announced iexist message", "from", an.h.ID(), "announcement", a, "time", t) + //log.Debugw("Announced iexist message", "from", an.h.ID(), "announcement", a, "time", t) } } } @@ -291,13 +291,13 @@ func (an *FxAnnouncements) AnnounceJoinPoolRequestPeriodically(ctx context.Conte } func (an *FxAnnouncements) ValidateAnnouncement(ctx context.Context, id peer.ID, msg *pubsub.Message, status common.MemberStatus, exists bool) bool { - log.Debugw("ValidateAnnouncement", "on peer", an.h.ID(), "from peerID", id) + //log.Debugw("ValidateAnnouncement", "on peer", an.h.ID(), "from peerID", id) a := &Announcement{} if err := a.UnmarshalBinary(msg.Data); err != nil { log.Errorw("failed to unmarshal announcement data", "err", err) return false } - log.Debugw("ValidateAnnouncement", "on peer", an.h.ID(), "from peerID", id, "type", a.Type) + //log.Debugw("ValidateAnnouncement", "on peer", an.h.ID(), "from peerID", id, "type", a.Type) switch a.Type { case NewManifestAnnouncementType: diff --git a/blockchain/blockchain.go b/blockchain/blockchain.go index 4ab5fd3..6e4f805 100644 --- a/blockchain/blockchain.go +++ b/blockchain/blockchain.go @@ -534,7 +534,7 @@ func (bl *FxBlockchain) handleReplicateInPool(method string, action string, from if err := json.NewDecoder(r.Body).Decode(&req); err != nil { log.Debug("cannot parse request body: %v", err) - http.Error(w, "", http.StatusBadRequest) + http.Error(w, "cannot parse request body", http.StatusBadRequest) return } diff --git a/exchange/hub_publisher.go b/exchange/hub_publisher.go index 2f2a485..03ab3c3 100644 --- a/exchange/hub_publisher.go +++ b/exchange/hub_publisher.go @@ -67,7 +67,7 @@ func (p *hubPublisher) Start(_ context.Context) error { maybePublish := func() { remaining := len(unpublished) if remaining == 0 { - log.Debug("hubPublisher: No remaining entries to publish") + //log.Debug("hubPublisher: No remaining entries to publish") return } if publishing.Load() { diff --git a/exchange/ipni_publisher.go b/exchange/ipni_publisher.go index d530264..81d8b95 100644 --- a/exchange/ipni_publisher.go +++ b/exchange/ipni_publisher.go @@ -66,7 +66,7 @@ func (p *ipniPublisher) Start(ctx context.Context) error { maybePublish := func() { remaining := len(unpublished) if remaining == 0 { - log.Debug("No remaining entries to publish") + //log.Debug("No remaining entries to publish") return } if publishing.Load() {