cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject cxf-fediz git commit: Log the REST + Lifetime Elements properly
Date Thu, 31 Mar 2016 14:42:14 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master 9da48791d -> 2e119aa15


Log the REST + Lifetime Elements properly


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

Branch: refs/heads/master
Commit: 2e119aa15d76c19b505db434313f84a9a4fde112
Parents: 9da4879
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Thu Mar 31 15:42:01 2016 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Thu Mar 31 15:42:01 2016 +0100

----------------------------------------------------------------------
 .../cxf/fediz/core/processor/FederationProcessorImpl.java     | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/2e119aa1/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
index e1f8ceb..3011ccb 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/processor/FederationProcessorImpl.java
@@ -61,6 +61,7 @@ import org.apache.cxf.fediz.core.util.DOMUtils;
 import org.apache.wss4j.common.ext.WSPasswordCallback;
 import org.apache.wss4j.common.ext.WSSecurityException;
 import org.apache.wss4j.common.saml.SamlAssertionWrapper;
+import org.apache.wss4j.common.util.DOM2Writer;
 import org.apache.wss4j.dom.WSConstants;
 import org.apache.wss4j.dom.WSDataRef;
 import org.apache.wss4j.dom.WSDocInfo;
@@ -150,8 +151,10 @@ public class FederationProcessorImpl extends AbstractFedizProcessor {
             el = DOMUtils.getNextElement(el);
         }
         
-        LOG.debug("RST: {}", rst);
-        LOG.debug("Lifetime: {}", lifetimeElem);
+        if (LOG.isDebugEnabled()) {
+            LOG.debug("RST: {}", DOM2Writer.nodeToString(rst));
+            LOG.debug("Lifetime: {}", DOM2Writer.nodeToString(lifetimeElem));
+        }
         LOG.debug("Tokentype: {}", tt);
         
         if (rst == null) {


Mime
View raw message