From 918122e7cf36c26a1c57764e837eb08b2cf5510b Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Fri, 15 Feb 2019 16:31:36 -0300 Subject: [PATCH] supress invalid token error to debug --- lbrynet/dht/protocol/protocol.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lbrynet/dht/protocol/protocol.py b/lbrynet/dht/protocol/protocol.py index 913cac83b..d836fbe95 100644 --- a/lbrynet/dht/protocol/protocol.py +++ b/lbrynet/dht/protocol/protocol.py @@ -480,7 +480,9 @@ class KademliaProtocol(DatagramProtocol): f"Error sending '{request.method}' to {peer.address}:{peer.udp_port}\n" \ f"Args: {request.args}\n" \ f"Raised: {str(remote_exception)}" - if error_datagram.response not in old_protocol_errors: + if 'Invalid token' in error_msg: + log.debug(error_msg) + elif error_datagram.response not in old_protocol_errors: log.warning(error_msg) else: log.warning("known dht protocol backwards compatibility error with %s:%i (lbrynet v%s)",