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

Shared library between AWS extended messaging clients to manage payloads larger than their limits.
Apache License 2.0
32 stars 15 forks source link

Log s3 bucket name and object key for failed requests #16

Open goldmar opened 3 years ago

goldmar commented 3 years ago

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.