@@ -450,6 +450,7 @@ async def async_fetch_all(self):
450
450
This is only called when position is still at zero,
451
451
and read() is called without a byte-count.
452
452
"""
453
+ logger .debug (f"Fetch all for { self } " )
453
454
if not isinstance (self .cache , AllBytes ):
454
455
r = await self .session .get (self .url , ** self .kwargs )
455
456
async with r :
@@ -470,6 +471,7 @@ async def async_fetch_range(self, start, end):
470
471
and then stream the output - if the data size is bigger than we
471
472
requested, an exception is raised.
472
473
"""
474
+ logger .debug (f"Fetch range for { self } : { start } -{ end } " )
473
475
kwargs = self .kwargs .copy ()
474
476
headers = kwargs .pop ("headers" , {}).copy ()
475
477
headers ["Range" ] = "bytes=%i-%i" % (start , end - 1 )
@@ -596,6 +598,7 @@ async def _file_size(url, session=None, size_policy="head", **kwargs):
596
598
Default operation is to explicitly allow redirects and use encoding
597
599
'identity' (no compression) to get the true size of the target.
598
600
"""
601
+ logger .debug ("Retrieve file size for %s" % url )
599
602
kwargs = kwargs .copy ()
600
603
ar = kwargs .pop ("allow_redirects" , True )
601
604
head = kwargs .get ("headers" , {}).copy ()
0 commit comments