Skip to content

Commit

Permalink
CHanged a LOG_ERROR to LOG_INFO
Browse files Browse the repository at this point in the history
  • Loading branch information
nmassey001 committed Oct 3, 2024
1 parent 61d501b commit a504346
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions nlds_processors/transferers/get_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,14 @@ def _transfer(self, bucket_name, object_name, download_path):
)
except Exception as e:
reason = f"Download-time exception occurred: {e}"
self.log(reason, RK.LOG_DEBUG)
self.log(
f"Exception encountered during download, adding "
f"{object_name} to failed list.",
RK.LOG_INFO,
)
raise TransferError(message=reason)

def _change_permissions(self, download_path, path_details):
"""Change the permission of the downloaded files"""
download_path_str = str(download_path)
self.log(
f"Changing permissions and ownership of file " f"{download_path}",
RK.LOG_ERROR,
RK.LOG_INFO,
)
try:
# Attempt to change back to original permissions
Expand Down Expand Up @@ -197,6 +191,7 @@ def _transfer_files(
self._transfer(bucket_name, object_name, download_path)
except TransferError as e:
path_details.failure_reason = e.message
self.log(e.message, RK.LOG_DEBUG)
self.append_and_send(
self.failedlist,
path_details,
Expand Down

0 comments on commit a504346

Please sign in to comment.