[xmlsectool] branch master updated: Bit of logging cleanup.

Scott Cantor cantor.2 at osu.edu
Thu Dec 19 11:02:04 EST 2019


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch master
in repository xmlsectool.

View the commit online:
http://git.shibboleth.net/view/?p=xmlsectool.git;a=commit;h=681415c0ad05a3fd5a31dd47a8c71feed2e229f4

The following commit(s) were added to refs/heads/master by this push:
       new  681415c   Bit of logging cleanup.
681415c is described below

commit 681415c0ad05a3fd5a31dd47a8c71feed2e229f4
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Thu Dec 19 11:01:47 2019 -0500

    Bit of logging cleanup.
---
 src/main/java/net/shibboleth/tool/xmlsectool/CredentialHelper.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/main/java/net/shibboleth/tool/xmlsectool/CredentialHelper.java b/src/main/java/net/shibboleth/tool/xmlsectool/CredentialHelper.java
index 5ba45d0..71ffb7e 100644
--- a/src/main/java/net/shibboleth/tool/xmlsectool/CredentialHelper.java
+++ b/src/main/java/net/shibboleth/tool/xmlsectool/CredentialHelper.java
@@ -142,7 +142,6 @@ public final class CredentialHelper {
      * @throws IOException if it is not possible to read the keystore
      * @throws GeneralSecurityException if there is a problem loading the keystore, or loading the credential from it
      */
-    @SuppressWarnings("unchecked")
     protected static BasicX509Credential getPKCS11Credential(final String keystoreProvider, final String pkcs11Config,
             final String keyAlias, final String keyPassword) throws IOException, GeneralSecurityException {
         LOG.debug("Install PKCS11 provider");
@@ -171,7 +170,7 @@ public final class CredentialHelper {
             LOG.error("Keystore provider class does not provide a String-argument constructor");
             throw new Terminator(ReturnCode.RC_INIT);
         } catch (final Exception e) {
-            LOG.error("Unable to read PKCS11 keystore", e);
+            LOG.error("Unable to read PKCS11 keystore: {}", e.getMessage());
             throw new IOException("Unable to read PKCS11 keystore", e);
         }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list