forked from LBRYCommunity/lbry-sdk
log socket errors
This commit is contained in:
parent
42eb172638
commit
537df6c8ad
1 changed files with 2 additions and 1 deletions
|
@ -375,7 +375,8 @@ class KademliaProtocol(protocol.DatagramProtocol):
|
||||||
# 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")
|
||||||
else:
|
else:
|
||||||
log.error("DHT socket error: %s (%i)", err.message, err.errno)
|
log.error("DHT socket error sending %i bytes to %s:%i - %s (code %i)",
|
||||||
|
len(txData), address[0], address[1], err.message, err.errno)
|
||||||
raise err
|
raise err
|
||||||
else:
|
else:
|
||||||
raise TransportNotConnected()
|
raise TransportNotConnected()
|
||||||
|
|
Loading…
Reference in a new issue