Skip to content

Commit 22bfb35

Browse files
ABS logs
1 parent a0c0e5b commit 22bfb35

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

connectors/sources/azure_blob_storage.py

+6
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ async def get_content(self, blob, timestamp=None, doit=None):
185185
if not self.can_file_be_downloaded(file_extension, filename, file_size):
186186
return
187187

188+
self._logger.debug(f"Downloading content for file: {filename}")
188189
document = {"_id": blob["id"], "_timestamp": blob["_timestamp"]}
189190
return await self.download_and_extract_file(
190191
document,
@@ -194,6 +195,9 @@ async def get_content(self, blob, timestamp=None, doit=None):
194195
)
195196

196197
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+
)
197201
async with BlobClient.from_connection_string(
198202
conn_str=self.connection_string,
199203
container_name=container_name,
@@ -212,6 +216,7 @@ async def get_container(self, container_list):
212216
Yields:
213217
dictionary: Container document with name & metadata
214218
"""
219+
self._logger.debug("Fetching containers")
215220
container_set = set(container_list)
216221
async with BlobServiceClient.from_connection_string(
217222
conn_str=self.connection_string, retry_total=self.retry_count
@@ -247,6 +252,7 @@ async def get_blob(self, container):
247252
Yields:
248253
dictionary: Formatted blob document
249254
"""
255+
self._logger.info(f"Fetching blobs for '{container['name']}' container")
250256
async with ContainerClient.from_connection_string(
251257
conn_str=self.connection_string,
252258
container_name=container["name"],

0 commit comments

Comments
 (0)