Skip to content

Commit

Permalink
modify logging and file name
Browse files Browse the repository at this point in the history
  • Loading branch information
m-goggins committed Dec 1, 2023
1 parent 54308cf commit 7a46e57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion serverless-functions/ReadSourceData/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def main(message: func.QueueMessage) -> None:
# Write blob data to storage
container_name = "delta-tables"
# filename = f"raw_data/{str(uuid.uuid4())}.json"
filename = "raw_data/mg_test.json"
filename = "mg_test.json"
parsed_message = message_parser_response.get("bundle")

cred_manager = AzureCredentialManager(resource_location=storage_account_url)
Expand All @@ -231,6 +231,7 @@ def main(message: func.QueueMessage) -> None:
cloud_container_connection.upload_object(
message=parsed_message, container_name=container_name, filename=filename
)
logging.info("wrote file to delta-tables")
return

subscription_id = os.environ["AZURE_SUBSCRIPTION_ID"]
Expand Down

0 comments on commit 7a46e57

Please sign in to comment.