Skip to content

Commit

Permalink
[ELY-1876] Log messages are not logged when KeyStoreCredentialStore is
Browse files Browse the repository at this point in the history
initialized with Provider[] in getKeyStoreInstance.
  • Loading branch information
ivassile committed Oct 29, 2019
1 parent d524028 commit eaebb5b
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -919,9 +919,14 @@ private void load(String type) throws CredentialStoreException {

private KeyStore getKeyStoreInstance(String type) throws CredentialStoreException {
if (providers != null) {
if (log.isTraceEnabled()) {
log.tracef("Obtaining KeyStore instance of type %s, providers: %s", type, Arrays.toString(providers));
}
for (Provider p: providers) {
try {
return KeyStore.getInstance(type, p);
KeyStore ks = KeyStore.getInstance(type, p);
log.tracef("Obtained KeyStore instance: %s, provider: %s", ks, p.toString());
return ks;
} catch (KeyStoreException e) {
// no such keystore type in provider, ignore
}
Expand Down

0 comments on commit eaebb5b

Please sign in to comment.