forked from LBRYCommunity/lbry-sdk
logging
This commit is contained in:
parent
c85991704d
commit
8883587cc7
2 changed files with 2 additions and 2 deletions
|
@ -105,8 +105,8 @@ class BlobExchangeClientProtocol(asyncio.Protocol):
|
|||
log.debug(msg)
|
||||
msg = f"downloaded {self.blob.blob_hash[:8]} from {self.peer_address}:{self.peer_port}"
|
||||
await asyncio.wait_for(self.writer.finished, self.peer_timeout, loop=self.loop)
|
||||
await self.blob.finished_writing.wait()
|
||||
log.info(msg)
|
||||
await self.blob.finished_writing.wait()
|
||||
return True, True
|
||||
except asyncio.CancelledError:
|
||||
return False, True
|
||||
|
|
|
@ -87,7 +87,7 @@ class BlobDownloader:
|
|||
if task and not task.done():
|
||||
task.cancel()
|
||||
await blob.close()
|
||||
log.info("downloaded %s", blob_hash[:8])
|
||||
log.debug("downloaded %s", blob_hash[:8])
|
||||
return blob
|
||||
except asyncio.CancelledError:
|
||||
while self.active_connections:
|
||||
|
|
Loading…
Reference in a new issue