You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by im...@apache.org on 2014/05/07 11:03:55 UTC
git commit: Added warning messages in load balancer request delegator
Repository: incubator-stratos
Updated Branches:
refs/heads/master d6843ebec -> f70b69673
Added warning messages in load balancer request delegator
Project: http://git-wip-us.apache.org/repos/asf/incubator-stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-stratos/commit/f70b6967
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/f70b6967
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/f70b6967
Branch: refs/heads/master
Commit: f70b69673f156ba1e86d15452a4820f8925f8ef8
Parents: d6843eb
Author: Imesh Gunaratne <im...@apache.org>
Authored: Wed May 7 14:32:31 2014 +0530
Committer: Imesh Gunaratne <im...@apache.org>
Committed: Wed May 7 14:32:31 2014 +0530
----------------------------------------------------------------------
.../apache/stratos/load/balancer/RequestDelegator.java | 10 ++++++++++
1 file changed, 10 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/f70b6967/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/RequestDelegator.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/RequestDelegator.java b/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/RequestDelegator.java
index 4a6bbc5..8cbca31 100644
--- a/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/RequestDelegator.java
+++ b/components/org.apache.stratos.load.balancer/src/main/java/org/apache/stratos/load/balancer/RequestDelegator.java
@@ -60,6 +60,11 @@ public class RequestDelegator {
}
return member;
}
+ else {
+ if(log.isWarnEnabled()) {
+ log.warn(String.format("Could not find a cluster for hostname %s", hostName));
+ }
+ }
return null;
}
@@ -79,6 +84,11 @@ public class RequestDelegator {
}
return member;
}
+ else {
+ if(log.isWarnEnabled()) {
+ log.warn(String.format("Could not find a cluster for hostname %s and tenant-id %d", hostName, tenantId));
+ }
+ }
return null;
}