Skip to content

Commit 736aeeb

Browse files
committed
fix: Remove unnecessary logging and print statement
1 parent d1c2f01 commit 736aeeb

File tree

1 file changed

+1
-4
lines changed
  • airflow_dbt_python/hooks

1 file changed

+1
-4
lines changed

airflow_dbt_python/hooks/s3.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get_dbt_profiles(
5050

5151
def download_one_s3_object(self, target: Path, s3_object):
5252
"""Download a single s3 object."""
53-
self.log.info("Saving profiles file to: %s", target)
53+
self.log.info("Saving %s file to: %s", s3_object, target)
5454

5555
with open(target, "wb+") as f:
5656
s3_object.download_fileobj(f)
@@ -109,13 +109,10 @@ def download_many_s3_keys(
109109
self, bucket_name: str, s3_keys: list[str], target_dir: Path, prefix: str
110110
):
111111
"""Download multiple s3 keys."""
112-
print(s3_keys)
113112
for s3_object_key in s3_keys:
114113
s3_object = self.get_key(key=s3_object_key, bucket_name=bucket_name)
115114
path_file = Path(s3_object_key).relative_to(prefix)
116115
local_project_file = target_dir / path_file
117116
local_project_file.parent.mkdir(parents=True, exist_ok=True)
118117

119-
self.log.info("Saving %s to: %s", s3_object_key, local_project_file)
120-
121118
self.download_one_s3_object(local_project_file, s3_object)

0 commit comments

Comments
 (0)