cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: Remove printStackTrace
Date Tue, 01 Apr 2014 11:25:41 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 09204993f -> bbb862680


Remove printStackTrace


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

Branch: refs/heads/master
Commit: bbb862680f5312a21c2dc842b709c652b95ddda6
Parents: 0920499
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:25: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/bbb86268/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 1ecd586..dff282b 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.container.ContainerRequestContext;
@@ -31,7 +32,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.utils.ExceptionUtils;
 import org.apache.cxf.jaxrs.utils.JAXRSUtils;
@@ -75,7 +75,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