log EWOULDBLOCK

This commit is contained in:
Jack Robison 2018-03-27 15:13:01 -04:00
parent a8025b02c6
commit 14f9bb7b82
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -345,7 +345,7 @@ class KademliaProtocol(protocol.DatagramProtocol):
if err.errno == errno.EWOULDBLOCK: if err.errno == errno.EWOULDBLOCK:
# i'm scared this may swallow important errors, but i get a million of these # i'm scared this may swallow important errors, but i get a million of these
# on Linux and it doesnt seem to affect anything -grin # on Linux and it doesnt seem to affect anything -grin
log.debug("Can't send data to dht: EWOULDBLOCK") log.warning("Can't send data to dht: EWOULDBLOCK")
elif err.errno == errno.ENETUNREACH: elif err.errno == errno.ENETUNREACH:
# this should probably try to retransmit when the network connection is back # this should probably try to retransmit when the network connection is back
log.error("Network is unreachable") log.error("Network is unreachable")