cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [2/2] git commit: Remove printStackTrace
Date Tue, 01 Apr 2014 11:27:20 GMT
Remove printStackTrace


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/bda818b8
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/bda818b8
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/bda818b8

Branch: refs/heads/2.7.x-fixes
Commit: bda818b86024e3aa50c2b9df712b41995b13fab1
Parents: 81c743c
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Tue Apr 1 12:25:21 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Tue Apr 1 12:26:35 2014 +0100

----------------------------------------------------------------------
 .../cxf/rs/security/saml/sso/SamlRedirectBindingFilter.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/bda818b8/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlRedirectBindingFilter.java
----------------------------------------------------------------------
diff --git a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlRedirectBindingFilter.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlRedirectBindingFilter.java
index d9cf8b8..ca2e85d 100644
--- a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlRedirectBindingFilter.java
+++ b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/SamlRedirectBindingFilter.java
@@ -23,6 +23,7 @@ import java.net.URLEncoder;
 import java.security.PrivateKey;
 import java.security.Signature;
 import java.security.cert.X509Certificate;
+import java.util.logging.Level;
 
 import javax.security.auth.callback.CallbackHandler;
 import javax.ws.rs.core.HttpHeaders;
@@ -30,7 +31,6 @@ import javax.ws.rs.core.Response;
 import javax.ws.rs.core.UriBuilder;
 
 import org.w3c.dom.Element;
-
 import org.apache.cxf.common.util.Base64Utility;
 import org.apache.cxf.jaxrs.model.ClassResourceInfo;
 import org.apache.cxf.jaxrs.utils.ExceptionUtils;
@@ -74,7 +74,7 @@ public class SamlRedirectBindingFilter extends AbstractServiceProviderFilter
{
                                .header(HttpHeaders.SET_COOKIE, contextCookie)
                                .build();
             } catch (Exception ex) {
-                ex.printStackTrace();
+                LOG.log(Level.FINE, ex.getMessage(), ex);
                 throw ExceptionUtils.toInternalServerErrorException(ex, null);
             }
         }


Mime
View raw message