From 11aad04c317a2fb4d0e886940fbb8eed669a0d3a Mon Sep 17 00:00:00 2001 From: Jack Robison Date: Thu, 19 Apr 2018 15:46:56 -0400 Subject: [PATCH] datagram decode error logging --- lbrynet/dht/protocol.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lbrynet/dht/protocol.py b/lbrynet/dht/protocol.py index cb96059ce..e1ca25d15 100644 --- a/lbrynet/dht/protocol.py +++ b/lbrynet/dht/protocol.py @@ -108,7 +108,8 @@ class KademliaProtocol(protocol.DatagramProtocol): message = self._translator.fromPrimitive(msgPrimitive) except (encoding.DecodeError, ValueError) as err: # 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 except (IndexError, KeyError): log.warning("Couldn't decode dht datagram from %s", address)