Commit b4428fda authored by Steven Allen's avatar Steven Allen
Browse files

reduce error to warning and log the error

This happens all the time in tests where we intentionally use fake keys for
performance.

Anyways, users probably don't want their logs spammed with errors they can't do
anything about.
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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
}
......
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