add more debug

This commit is contained in:
Kenneth Kehl
2025-08-06 09:23:25 -07:00
parent 1807c79d88
commit 01c8b22e8c

View File

@@ -66,9 +66,16 @@ def s3upload(
metadata = put_args["Metadata"] = metadata
try:
current_app.logger.info(f"Going to try to upload this {key}")
key.put(**put_args)
except botocore.exceptions.NoCredentialsError as e:
current_app.logger.exception(
f"Unable to upload {key} to S3 bucket because of {e}"
)
except botocore.exceptions.ClientError as e:
current_app.logger.exception("Unable to upload file to S3 bucket")
current_app.logger.exception(
f"Unable to upload {key}to S3 bucket because of {e}"
)
raise e