stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From isu...@apache.org
Subject [2/2] git commit: adding a debug log
Date Fri, 07 Feb 2014 03:33:59 GMT
adding a debug log


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

Branch: refs/heads/master
Commit: ccac187392db1192e8fffde2fce6cc95d65fd705
Parents: 1367eee
Author: Isuru <isuruh@wso2.com>
Authored: Fri Feb 7 09:03:21 2014 +0530
Committer: Isuru <isuruh@wso2.com>
Committed: Fri Feb 7 09:03:21 2014 +0530

----------------------------------------------------------------------
 .../topology/model/TopologyClusterInformationModel.java      | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/ccac1873/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/topology/model/TopologyClusterInformationModel.java
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/topology/model/TopologyClusterInformationModel.java
b/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/topology/model/TopologyClusterInformationModel.java
index 82d0a16..46d366f 100644
--- a/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/topology/model/TopologyClusterInformationModel.java
+++ b/components/org.apache.stratos.manager/src/main/java/org/apache/stratos/manager/topology/model/TopologyClusterInformationModel.java
@@ -229,7 +229,13 @@ public class TopologyClusterInformationModel {
 
                                 clusterSet = new HashSet<Cluster>();
                                 while (aliasCtxIterator.hasNext()) {
-                                    clusterSet.add(aliasCtxIterator.next().getCluster());
+                                    Cluster cluster = aliasCtxIterator.next().getCluster();
+                                    // add the cluster to the set
+                                    clusterSet.add(cluster);
+
+                                    if (log.isDebugEnabled()) {
+                                        log.debug("Matching cluster found for tenant " +
tenantId + " : " + cluster.toString());
+                                    }
                                 }
                             }
                         }


Mime
View raw message