Skip to content

Commit

Permalink
Merge pull request #322 from C-Accel-CRIPT/log-file-uploads
Browse files Browse the repository at this point in the history
added log for file uploads
  • Loading branch information
nh916 authored Sep 6, 2023
2 parents 7dc567c + 02b8836 commit 35505b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cript/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ def upload_file(self, file_path: Union[Path, str]) -> str:
# upload file to AWS S3
self._s3_client.upload_file(Filename=file_path, Bucket=self._BUCKET_NAME, Key=object_name) # type: ignore

self.logger.info(f"Uploaded file: '{file_path}' to CRIPT storage")

# return the object_name within AWS S3 for easy retrieval
return object_name

Expand Down

0 comments on commit 35505b8

Please sign in to comment.