in src/main/java/software/amazon/msk/auth/iam/internals/MSKCredentialProvider.java [216:227]
private void logCallerIdentity(AwsCredentials credentials) {
try {
StsClient stsClient = getStsClientForDebuggingCreds(credentials);
GetCallerIdentityResponse response = stsClient.getCallerIdentity();
log.debug("The identity of the credentials is {}", response.toString());
} catch (Exception e) {
//If we run into an exception logging the caller identity, we should log the exception but
//continue running.
log.warn("Error identifying caller identity. If this is not transient, does this application have"
+ "access to AWS STS?", e);
}
}