Skip to content

Commit

Permalink
dev: Add more explicit logs
Browse files Browse the repository at this point in the history
  • Loading branch information
clemlesne committed Jun 15, 2024
1 parent 0329e02 commit ac427a8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions function_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ async def extract_to_chunck(input: BlobClientTrigger) -> None:
out_path = replace_root_path(
replace_extension(blob_name, f"-{i}.json"), CHUNCK_FOLDER
)
logger.info(f"Saving chunck {i + 1}/{len(chuncks)} ({out_path})")
out_client = await _use_blob_client(out_path)
try:
await out_client.upload_blob(data=out_model.model_dump_json())
Expand Down Expand Up @@ -370,6 +371,7 @@ async def synthesis_to_page(input: BlobClientTrigger) -> None:
out_path = replace_root_path(
replace_extension(blob_name, f"-{i}.json"), PAGE_FOLDER
)
logger.info(f"Saving page {i + 1}/{len(pages)} ({out_path})")
out_client = await _use_blob_client(out_path)
try:
await out_client.upload_blob(data=out_model.model_dump_json())
Expand Down

0 comments on commit ac427a8

Please sign in to comment.