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
|
||||
log.error("Network is unreachable")
|
||||
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
|
||||
else:
|
||||
raise TransportNotConnected()
|
||||
|
|
Loading…
Add table
Reference in a new issue