log a warning when peer search times out for real

This commit is contained in:
Victor Shyba 2018-07-03 12:20:33 -03:00
parent 023846703b
commit 7e0784d8e0

View file

@ -48,6 +48,7 @@ class DHTPeerFinder(DummyPeerFinder):
try:
peer_list = yield finished_deferred
except defer.TimeoutError:
log.warning("DHT timed out while looking peers for blob {}".format(blob_hash))
peer_list = []
peers = set(peer_list)