mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Reduced warn log entry without stacktrace for startup exceptions
Issue: SPR-13663
This commit is contained in:
+4
-1
@@ -541,7 +541,10 @@ public abstract class AbstractApplicationContext extends DefaultResourceLoader
|
||||
}
|
||||
|
||||
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.
|
||||
destroyBeans();
|
||||
|
||||
Reference in New Issue
Block a user