From 8e5f27505adaddd3e927307bf57e9308ce70d5bc Mon Sep 17 00:00:00 2001 From: nuwandiw Date: Fri, 8 Apr 2016 15:34:10 +0530 Subject: [PATCH] changed log to error from warn in the case of NoSuchAlgorithmException --- .../org/wso2/carbon/identity/sso/saml/util/SAMLSSOUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/util/SAMLSSOUtil.java b/components/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/util/SAMLSSOUtil.java index 2db8a0a51..fe08bca77 100644 --- a/components/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/util/SAMLSSOUtil.java +++ b/components/org.wso2.carbon.identity.sso.saml/src/main/java/org/wso2/carbon/identity/sso/saml/util/SAMLSSOUtil.java @@ -725,7 +725,8 @@ public static String createID() { SecureRandomIdentifierGenerator generator = new SecureRandomIdentifierGenerator(); return generator.generateIdentifier(); } catch (NoSuchAlgorithmException e) { - log.warn("Error while building Secure Random ID"); + log.error("Error while building Secure Random ID", e); + //TODO : throw exception and break the flow } return null;