Updated Branches:
  refs/heads/master 97926da70 -> a74b60ec4

Removed log entry from load balancer context getCluster() method


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

Branch: refs/heads/master
Commit: d3ae36c7a3d9df0355f30631c8336fb35fe5e8e7
Parents: 07769e1
Author: Imesh Gunaratne <[email protected]>
Authored: Wed Nov 20 22:08:19 2013 +0530
Committer: Imesh Gunaratne <[email protected]>
Committed: Wed Nov 20 22:08:19 2013 +0530

----------------------------------------------------------------------
 .../apache/stratos/load/balancer/LoadBalancerContext.java    | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/d3ae36c7/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/LoadBalancerContext.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/LoadBalancerContext.java
 
b/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/LoadBalancerContext.java
index 16b8c4b..fd68479 100644
--- 
a/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/LoadBalancerContext.java
+++ 
b/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/LoadBalancerContext.java
@@ -203,13 +203,7 @@ public class LoadBalancerContext {
     }
 
     public Cluster getCluster(String hostName) {
-        long startTime = System.currentTimeMillis();
-        Cluster cluster = clusterMap.get(hostName);
-        long endTime = System.currentTimeMillis();
-        if(log.isDebugEnabled()) {
-            log.debug(String.format("Cluster resolved using hostname in %dms: 
[cluster] %s [hostname] %s", (endTime - startTime), cluster.getClusterId(), 
hostName));
-        }
-        return cluster;
+        return clusterMap.get(hostName);
     }
 
     public boolean clusterExists(String hostName) {

Reply via email to