Merge remote-tracking branch 'origin/fix_dht_logging'

This commit is contained in:
Jack Robison 2018-10-17 21:26:46 -04:00
commit 78078b4c9f
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -221,7 +221,7 @@ class KademliaProtocol(protocol.DatagramProtocol):
message = self._translator.fromPrimitive(msgPrimitive) message = self._translator.fromPrimitive(msgPrimitive)
except (encoding.DecodeError, ValueError) as err: except (encoding.DecodeError, ValueError) as err:
# We received some rubbish here # We received some rubbish here
log.warning("Error decoding datagram %s from %s:%i - %s", datagram.encode('hex'), log.warning("Error decoding datagram %s from %s:%i - %s", hexlify(datagram),
address[0], address[1], err) address[0], address[1], err)
return return
except (IndexError, KeyError): except (IndexError, KeyError):