Skip to content

Commit

Permalink
Improve debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Binara-Sachin committed Oct 31, 2024
1 parent 7a95f1b commit ff46c3b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ protected KeyStore load(InputStream input, String storepass, String provider, St
log.debug("Loading keystore...");
try {
String tenantDomain = PrivilegedCarbonContext.getThreadLocalCarbonContext().getTenantDomain();
return IdentityKeyStoreResolver.getInstance().getKeyStore(
KeyStore keyStore = IdentityKeyStoreResolver.getInstance().getKeyStore(
tenantDomain, IdentityKeyStoreResolverConstants.InboundProtocol.WS_FEDERATION);
log.debug("Successfully retrieved the keystore.");
return keyStore;
} catch (IdentityKeyStoreResolverException e) {
if (log.isDebugEnabled()) {
log.debug("Error occurred when loading keystore.", e);
}
log.debug("Error occurred when loading keystore.", e);
throw new WSSecurityException(WSSecurityException.ErrorCode.FAILURE, e);
}
}
Expand Down

0 comments on commit ff46c3b

Please sign in to comment.