From 0bec6755633cdc0a23daba79a993cb7e360b0f67 Mon Sep 17 00:00:00 2001 From: Marc-Philipp Esser Date: Mon, 16 Oct 2023 22:48:43 +0200 Subject: [PATCH] add logger statements for debugging --- src/prefect/ingest_photos_napi_gcs.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/prefect/ingest_photos_napi_gcs.py b/src/prefect/ingest_photos_napi_gcs.py index 7b0d216..d04d537 100644 --- a/src/prefect/ingest_photos_napi_gcs.py +++ b/src/prefect/ingest_photos_napi_gcs.py @@ -204,10 +204,17 @@ def ingest_photos_napi_gcs( ): """Flow to load Editorial photos from Unsplash and store them in a Google Cloud Storage Bucket""" + import pathlib + + path = pathlib.Path.cwd() + for p in path.rglob("*"): + logger.info(p.name) + logger = get_run_logger() # Init all variables env_variables = load_env_variables() + logger.info(env_variables) env = env_variables["ENV"] # dev, test or prod bucket_name = f"photos-editorial-metadata-{env}"