datagram decode error logging
This commit is contained in:
parent
b89823c968
commit
11aad04c31
1 changed files with 2 additions and 1 deletions
|
@ -108,7 +108,8 @@ 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.exception("Error decoding datagram from %s:%i - %s", address[0], address[1], err)
|
log.warning("Error decoding datagram %s from %s:%i - %s", datagram.encode('hex'),
|
||||||
|
address[0], address[1], err)
|
||||||
return
|
return
|
||||||
except (IndexError, KeyError):
|
except (IndexError, KeyError):
|
||||||
log.warning("Couldn't decode dht datagram from %s", address)
|
log.warning("Couldn't decode dht datagram from %s", address)
|
||||||
|
|
Loading…
Reference in a new issue