Commit a3aedb96 authored by Ralph Pichler's avatar Ralph Pichler Committed by GitHub

remove duplicate log and demote to trace (#755)

parent 4b91ba20
......@@ -73,19 +73,19 @@ func (s *Service) handler(ctx context.Context, p p2p.Peer, stream p2p.Stream) (e
_ = stream.FullClose()
}
}()
s.logger.Infof("receiving payment threshold announcement from peer %v", p.Address)
var req pb.AnnouncePaymentThreshold
if err := r.ReadMsg(&req); err != nil {
s.logger.Debugf("error receiving payment threshold announcement from peer %v", p.Address)
return fmt.Errorf("read request from peer %v: %w", p.Address, err)
}
s.logger.Infof("received payment threshold announcement from peer %v of %d", p.Address, req.PaymentThreshold)
s.logger.Tracef("received payment threshold announcement from peer %v of %d", p.Address, req.PaymentThreshold)
return s.paymentThresholdObserver.NotifyPaymentThreshold(p.Address, req.PaymentThreshold)
}
func (s *Service) init(ctx context.Context, p p2p.Peer) error {
s.logger.Infof("sending payment threshold announcement to peer %v", p.Address)
s.logger.Tracef("sending payment threshold announcement to peer %v", p.Address)
err := s.AnnouncePaymentThreshold(ctx, p.Address, s.paymentThreshold)
if err != nil {
s.logger.Warningf("error sending payment threshold announcement to peer %v", p.Address)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment