Skip to content

Commit f12df49

Browse files
committed
Add logging for when secret is unable to be retrieved
Signed-off-by: Taylor Gray <tylgry@amazon.com>
1 parent 8e37ee5 commit f12df49

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

data-prepper-plugins/aws-plugin/src/main/java/org/opensearch/dataprepper/plugins/aws/AwsSecretsSupplier.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ private Object retrieveSecretsFromSecretManager(final AwsSecretManagerConfigurat
128128
try {
129129
getSecretValueResponse = secretsManagerClient.getSecretValue(getSecretValueRequest);
130130
} catch (Exception e) {
131+
LOG.error("Unable to retrieve secret {}", getSecretValueRequest.secretId(), e);
131132
throw new RuntimeException(
132133
String.format("Unable to retrieve secret: %s",
133134
awsSecretManagerConfiguration.getAwsSecretId()), e);

0 commit comments

Comments
 (0)