Add some debug logging for state changes
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 17 May 2010 10:47:03 +0000 (10:47 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 17 May 2010 10:47:03 +0000 (10:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@945073 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/util/LifecycleBase.java
java/org/apache/catalina/util/LocalStrings.properties

index c0cef3b..629897e 100644 (file)
@@ -297,6 +297,8 @@ public abstract class LifecycleBase implements Lifecycle {
      * @param data  The data to pass to the associated {@link Lifecycle} event
      */
     protected void setState(LifecycleState state, Object data) {
+        
+        log.debug(sm.getString("lifecycleBase.setState", this, state));
         this.state = state;
         String lifecycleEvent = state.getLifecycleEvent();
         if (lifecycleEvent != null) {
index 2e7c80c..08705c0 100644 (file)
@@ -27,6 +27,7 @@ lifecycleBase.alreadyStarted=The start() method was called on component [{0}] af
 lifecycleBase.alreadyStopped=The stop() method was called on component [{0}] after stop() had already been called. The second call will be ignored.
 lifecycleBase.alreadyDestroyed=The destroy() method was called on component [{0}] after destroy() had already been called. The second call will be ignored.
 lifecycleBase.invalidTransition=An invalid Lifecycle transition was attempted ([{0}]) for component [{1}] in state [{2}]
+lifecycleBase.setState=Setting state for [{0}] to [{1}]
 lifecycleMBeanBase.registerFail=Failed to register object [{0}] with name [{0}] during component initialisation
 lifecycleMBeanBase.unregisterFail=Failed to unregister MBean with name [{0}] during component destruction
 lifecycleMBeanBase.unregisterNoServer=No MBean server was available to unregister the MBean [{0}]