Need detailed log for start and stop Lifecycle beans [SPR-6769] #11435
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
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:
Referenced from: commits a897e3f
The text was updated successfully, but these errors were encountered: