cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] cxf-fediz git commit: Minor optimisation
Date Wed, 07 Oct 2015 16:22:01 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master a98f14434 -> 33603e77b


Minor optimisation


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

Branch: refs/heads/master
Commit: 239e64a16ccb058da8056413ddae3e6556ccd5c3
Parents: a98f144
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed Oct 7 11:51:20 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed Oct 7 11:51:20 2015 +0100

----------------------------------------------------------------------
 .../cxf/fediz/service/idp/beans/STSClientAction.java      | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/239e64a1/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
----------------------------------------------------------------------
diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
index d1a2f27..1dda0a1 100644
--- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
+++ b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/STSClientAction.java
@@ -293,10 +293,12 @@ public class STSClientAction {
             throw ex;
         }
 
-        String id = getIdFromToken(rpToken);
-        
-        LOG.info("[RP_TOKEN={}] successfully created for realm [{}] on behalf of [IDP_TOKEN={}]",
-                 id, wtrealm, idpToken.getId());
+        if (LOG.isInfoEnabled()) {
+            String id = getIdFromToken(rpToken);
+            
+            LOG.info("[RP_TOKEN={}] successfully created for realm [{}] on behalf of [IDP_TOKEN={}]",
+                     id, wtrealm, idpToken.getId());
+        }
         return StringEscapeUtils.escapeXml11(rpToken);
     }
     


Mime
View raw message