-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Description
Liu, Yinwei David opened SPR-6769 and commented
When Spring starts/stops its application context, it uses the class DefaultLifecycleProcessor in Spring 3 to start/stop all Lifecycle beans. However, I think the logging information in DefaultLifecycleProcessor's LifecycleGroup.start() and LifecycleGroup.stop() method is not enough, which does not have some useful information, such as bean name,
Currently, it only has this log info in its class:
if (logger.isWarnEnabled()) {
logger.warn("failed to shutdown beans with phase value " +
this.phase + " within timeout of " + this.timeout);
}
Can we add more detailed debug info here to indicate which bean has been started and which bean has been stopped, and which bean failed?
Affects: 3.0 GA
Issue Links:
- Does not catch exception during stopping Lifecycle bean can cause resource leak [SPR-6770] #11436 Does not catch exception during stopping Lifecycle bean can cause resource leak
Referenced from: commits a897e3f