Reduced warn log entry without stacktrace for startup exceptions
Issue: SPR-13663
This commit is contained in:
parent
5d9d88c44d
commit
cdf6eb95ab
|
@ -541,7 +541,10 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
||||||
}
|
}
|
||||||
|
|
||||||
catch (BeansException ex) {
|
catch (BeansException ex) {
|
||||||
logger.warn("Exception encountered during context initialization - cancelling refresh attempt", ex);
|
if (logger.isWarnEnabled()) {
|
||||||
|
logger.warn("Exception encountered during context initialization - " +
|
||||||
|
"cancelling refresh attempt: " + ex);
|
||||||
|
}
|
||||||
|
|
||||||
// Destroy already created singletons to avoid dangling resources.
|
// Destroy already created singletons to avoid dangling resources.
|
||||||
destroyBeans();
|
destroyBeans();
|
||||||
|
|
Loading…
Reference in New Issue