mirror of
https://github.com/LBRYFoundation/lbry-sdk.git
synced 2025-08-30 17:01:28 +00:00
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)
|
log.debug(msg)
|
||||||
msg = f"downloaded {self.blob.blob_hash[:8]} from {self.peer_address}:{self.peer_port}"
|
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 asyncio.wait_for(self.writer.finished, self.peer_timeout, loop=self.loop)
|
||||||
await self.blob.finished_writing.wait()
|
|
||||||
log.info(msg)
|
log.info(msg)
|
||||||
|
await self.blob.finished_writing.wait()
|
||||||
return True, True
|
return True, True
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
return False, True
|
return False, True
|
||||||
|
|
|
@ -87,7 +87,7 @@ class BlobDownloader:
|
||||||
if task and not task.done():
|
if task and not task.done():
|
||||||
task.cancel()
|
task.cancel()
|
||||||
await blob.close()
|
await blob.close()
|
||||||
log.info("downloaded %s", blob_hash[:8])
|
log.debug("downloaded %s", blob_hash[:8])
|
||||||
return blob
|
return blob
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
while self.active_connections:
|
while self.active_connections:
|
||||||
|
|
Loading…
Add table
Reference in a new issue