awslabs/payload-offloading-java-common-lib-for-aws

Log s3 bucket name and object key for failed requests

Opened this issue · 0 comments

When this library fails to retrieve an S3 object, it currently logs an error message with the exception. This exception contains a request id and an s3 extended request id, however it does not contain the name of the bucket and the object key that it was trying to retrieve.

Is it possible to add this context to the log and exception message? This data is already logged in the success case but not in the failure case.