From 8853cd38f8b017cd12ea1d7b350674af20ed7527 Mon Sep 17 00:00:00 2001 From: stdavis Date: Tue, 19 Dec 2023 23:38:58 +0000 Subject: [PATCH] fix(download): use correct logging in bucket module --- cloudrun/src/download/bucket.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cloudrun/src/download/bucket.py b/cloudrun/src/download/bucket.py index 4a7efbf2..d0e3c369 100644 --- a/cloudrun/src/download/bucket.py +++ b/cloudrun/src/download/bucket.py @@ -4,6 +4,7 @@ from google.cloud import storage import shutil from uuid import uuid4 +from .log import logger storage_client = storage.Client() bucket = storage_client.bucket("ut-dts-agrc-deq-enviro-dev.appspot.com") @@ -13,7 +14,7 @@ def upload(path): """ Uploads the data to a cloud storage bucket. """ - print("uploading to bucket") + logger.info("uploading to bucket") # zip contents of path zip_file = shutil.make_archive(path, "zip", path)