cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Fix clustering tests
Date Wed, 05 Mar 2014 09:55:47 GMT
Repository: cxf
Updated Branches:
  refs/heads/2.7.x-fixes 741ea9b63 -> dd1dc8ae2


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/dd1dc8ae
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/dd1dc8ae
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/dd1dc8ae

Branch: refs/heads/2.7.x-fixes
Commit: dd1dc8ae2b163e9a000e51dabbec41024a866069
Parents: 741ea9b
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Mar 3 18:02:49 2014 -0500
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Mar 5 09:55:20 2014 +0000

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


http://git-wip-us.apache.org/repos/asf/cxf/blob/dd1dc8ae/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);
                         }
                     }


Mime
View raw message