supress invalid token error to debug

This commit is contained in:
Victor Shyba 2019-02-15 16:31:36 -03:00
parent a49f479a5f
commit 918122e7cf

View file

@ -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)",