@@ -185,6 +185,7 @@ async def get_content(self, blob, timestamp=None, doit=None):
185
185
if not self .can_file_be_downloaded (file_extension , filename , file_size ):
186
186
return
187
187
188
+ self ._logger .debug (f"Downloading content for file: { filename } " )
188
189
document = {"_id" : blob ["id" ], "_timestamp" : blob ["_timestamp" ]}
189
190
return await self .download_and_extract_file (
190
191
document ,
@@ -194,6 +195,9 @@ async def get_content(self, blob, timestamp=None, doit=None):
194
195
)
195
196
196
197
async def blob_download_func (self , blob_name , container_name ):
198
+ self ._logger .debug (
199
+ f"Downloading content for blob: { blob_name } from { container_name } container"
200
+ )
197
201
async with BlobClient .from_connection_string (
198
202
conn_str = self .connection_string ,
199
203
container_name = container_name ,
@@ -212,6 +216,7 @@ async def get_container(self, container_list):
212
216
Yields:
213
217
dictionary: Container document with name & metadata
214
218
"""
219
+ self ._logger .debug ("Fetching containers" )
215
220
container_set = set (container_list )
216
221
async with BlobServiceClient .from_connection_string (
217
222
conn_str = self .connection_string , retry_total = self .retry_count
@@ -247,6 +252,7 @@ async def get_blob(self, container):
247
252
Yields:
248
253
dictionary: Formatted blob document
249
254
"""
255
+ self ._logger .info (f"Fetching blobs for '{ container ['name' ]} ' container" )
250
256
async with ContainerClient .from_connection_string (
251
257
conn_str = self .connection_string ,
252
258
container_name = container ["name" ],
0 commit comments