You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by ud...@apache.org on 2014/12/18 07:38:19 UTC
[17/50] [abbrv] stratos git commit: changing lifecycle manager log to
debug log
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 <rt...@gmail.com>
Authored: Tue Dec 16 11:53:24 2014 +0530
Committer: Udara Liyanage <ud...@wso2.com>
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 " +