Updated Branches:
  refs/heads/master 11231e0cf -> 1e0496cdb

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/1e0496cd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-stratos/tree/1e0496cd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-stratos/diff/1e0496cd

Branch: refs/heads/master
Commit: 1e0496cdb5a080a742de47e88f0b3e1619618815
Parents: 11231e0
Author: Isuru <[email protected]>
Authored: Wed Feb 5 14:52:11 2014 +0530
Committer: Isuru <[email protected]>
Committed: Wed Feb 5 14:52:11 2014 +0530

----------------------------------------------------------------------
 .../org/apache/stratos/autoscaler/PartitionContext.java     | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-stratos/blob/1e0496cd/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
index 7d75943..63bdeaa 100644
--- 
a/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
+++ 
b/components/org.apache.stratos.autoscaler/src/main/java/org/apache/stratos/autoscaler/PartitionContext.java
@@ -86,9 +86,6 @@ public class PartitionContext implements Serializable{
         this.activeMembers = new ArrayList<MemberContext>();
         this.terminationPendingMembers = new ArrayList<MemberContext>();
         expiryTime = memberExpiryTime;
-        //if (log.isDebugEnabled()) {
-        log.info("Member expiry time is set to: " + expiryTime);
-        //}
     }
     
     public PartitionContext(Partition partition) {
@@ -105,9 +102,9 @@ public class PartitionContext implements Serializable{
         // check if a different value has been set for expiryTime
         XMLConfiguration conf = ConfUtil.getInstance(null).getConfiguration();
         expiryTime = conf.getLong("autoscaler.member.expiryTimeout", 900000);
-        //if (log.isDebugEnabled()) {
-            log.info("Member expiry time is set to: " + expiryTime);
-        //}
+        if (log.isDebugEnabled()) {
+            log.debug("Member expiry time is set to: " + expiryTime);
+        }
 
         Thread th = new Thread(new PendingMemberWatcher(this));
         th.start();

Reply via email to