Skip to content

Commit eec19f8

Browse files
add record count log in finally block
1 parent 7c18464 commit eec19f8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

connectors/sources/azure_blob_storage.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -291,13 +291,14 @@ async def get_blob(self, container):
291291
yield self.prepare_blob_doc(
292292
blob=blob, container_metadata=container["metadata"]
293293
)
294-
self._logger.info(
295-
f"Fetched {blob_count} blobs from '{container['name']}' container"
296-
)
297294
except Exception as exception:
298295
self._logger.warning(
299296
f"Something went wrong while fetching blobs from {container['name']}. Error: {exception}"
300297
)
298+
finally:
299+
self._logger.info(
300+
f"Fetched {blob_count} blobs from '{container['name']}' container"
301+
)
301302

302303
async def get_docs(self, filtering=None):
303304
"""Get documents from Azure Blob Storage

0 commit comments

Comments
 (0)