Skip to content

Commit

Permalink
added log for file uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
nh916 committed Sep 6, 2023
1 parent 279d110 commit 02b8836
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 02b8836

Please sign in to comment.