Skip to content

Commit

Permalink
remove info log from download_file (#37211)
Browse files Browse the repository at this point in the history
Signed-off-by: kalyanr <kalyan.ben10@live.com>
  • Loading branch information
rawwar authored Feb 7, 2024
1 parent e9ad488 commit d8ce75c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions airflow/providers/amazon/aws/hooks/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,10 @@ def download_file(
"""
Download a file from the S3 location to the local file system.
Note:
This function shadows the 'download_file' method of S3 API, but it is not the same.
If you want to use the original method from S3 API, please use 'S3Hook.get_conn().download_file()'
.. seealso::
- :external+boto3:py:meth:`S3.Object.download_fileobj`
Expand All @@ -1386,12 +1390,6 @@ def download_file(
Default: True.
:return: the file name.
"""
self.log.info(
"This function shadows the 'download_file' method of S3 API, but it is not the same. If you "
"want to use the original method from S3 API, please call "
"'S3Hook.get_conn().download_file()'"
)

self.log.info("Downloading source S3 file from Bucket %s with path %s", bucket_name, key)

try:
Expand Down

0 comments on commit d8ce75c

Please sign in to comment.