Browse Source

Merge pull request #360 from libp2p/nit/errors

reduce error to warning and log the error
pull/365/head
Steven Allen 6 years ago
committed by GitHub
parent
commit
7c22c11759
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      p2p/protocol/identify/id.go

2
p2p/protocol/identify/id.go

@ -255,7 +255,7 @@ func (ids *IDService) consumeReceivedPubKey(c inet.Conn, kb []byte) {
newKey, err := ic.UnmarshalPublicKey(kb)
if err != nil {
log.Errorf("%s cannot unmarshal key from remote peer: %s", lp, rp)
log.Warningf("%s cannot unmarshal key from remote peer: %s, %s", lp, rp, err)
return
}

Loading…
Cancel
Save