changing lifecycle manager log to debug log

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

Branch: refs/heads/master
Commit: cead9e609da2a5c09cfb27075901e78319293123
Parents: b0fdbc4
Author: reka <[email protected]>
Authored: Tue Dec 16 11:53:24 2014 +0530
Committer: Udara Liyanage <[email protected]>
Committed: Thu Dec 18 12:06:57 2014 +0530

----------------------------------------------------------------------
 .../domain/topology/lifecycle/LifeCycleStateManager.java       | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/cead9e60/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/lifecycle/LifeCycleStateManager.java
----------------------------------------------------------------------
diff --git 
a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/lifecycle/LifeCycleStateManager.java
 
b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/lifecycle/LifeCycleStateManager.java
index e2907bb..f5eb859 100644
--- 
a/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/lifecycle/LifeCycleStateManager.java
+++ 
b/components/org.apache.stratos.messaging/src/main/java/org/apache/stratos/messaging/domain/topology/lifecycle/LifeCycleStateManager.java
@@ -83,8 +83,10 @@ public class LifeCycleStateManager<T extends LifeCycleState> 
implements Serializ
         if (getCurrentState() != nextState) {
             stateStack.push(nextState);
             stateChanged = true;
-            log.info("Element [" + identifier + "]'s lifecycle state changed 
from [" +
-                    getPreviousState() + "] to [" + getCurrentState() + "]");
+            if(log.isDebugEnabled()) {
+                log.debug("Element [" + identifier + "]'s lifecycle state 
changed from [" +
+                        getPreviousState() + "] to [" + getCurrentState() + 
"]");
+            }
         } else {
             if (log.isDebugEnabled()) {
                 log.debug("Element [" + identifier +"]'s lifecycle state has 
been " +

Reply via email to