Repository: cxf
Updated Branches:
  refs/heads/2.6.x-fixes 9987b8af4 -> 3fbf927ac


Fix clustering tests


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

Branch: refs/heads/2.6.x-fixes
Commit: 3fbf927acbcc8e00ae4236d7abf894b1f90d1eea
Parents: 9987b8a
Author: Daniel Kulp <[email protected]>
Authored: Mon Mar 3 18:02:49 2014 -0500
Committer: Willem Jiang <[email protected]>
Committed: Fri Mar 14 22:33:09 2014 +0800

----------------------------------------------------------------------
 .../cxf/clustering/AbstractStaticFailoverStrategy.java    | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/3fbf927a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
----------------------------------------------------------------------
diff --git 
a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
 
b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
index 5b2ade9..1a37296 100644
--- 
a/rt/features/clustering/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
+++ 
b/rt/features/clustering/src/main/java/org/apache/cxf/clustering/AbstractStaticFailoverStrategy.java
@@ -144,10 +144,12 @@ public abstract class AbstractStaticFailoverStrategy 
implements FailoverStrategy
                              endpoint.getEndpointInfo().getAddress())) {
                         Endpoint alternate =
                             
endpoint.getService().getEndpoints().get(candidate.getName());
-                        if (alternate != null && LOG.isLoggable(Level.FINE)) {
-                            LOG.log(Level.FINE,
-                                    "FAILOVER_CANDIDATE_ACCEPTED",
-                                    candidate.getName());
+                        if (alternate != null) {
+                            if (LOG.isLoggable(Level.FINE)) {
+                                LOG.log(Level.FINE,
+                                        "FAILOVER_CANDIDATE_ACCEPTED",
+                                        candidate.getName());
+                            }
                             alternates.add(alternate);
                         }
                     }

Reply via email to