From 02b8836315093de68323e5b754918cbccd195312 Mon Sep 17 00:00:00 2001 From: nh916 Date: Wed, 6 Sep 2023 12:30:03 -0700 Subject: [PATCH] added log for file uploads --- src/cript/api/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cript/api/api.py b/src/cript/api/api.py index 1a2e431ab..f6a0c6d0f 100644 --- a/src/cript/api/api.py +++ b/src/cript/api/api.py @@ -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