Skip to content

Commit 5e2fbe7

Browse files
committed
AbstractApplicationContext logs initialization exception before trying to cancel refresh attempt
Issue: SPR-12010
1 parent 4b09fcc commit 5e2fbe7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

spring-context/src/main/java/org/springframework/context/support/AbstractApplicationContext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,8 @@ public void refresh() throws BeansException, IllegalStateException {
484484
}
485485

486486
catch (BeansException ex) {
487+
logger.warn("Exception encountered during context initialization - cancelling refresh attempt", ex);
488+
487489
// Destroy already created singletons to avoid dangling resources.
488490
destroyBeans();
489491

0 commit comments

Comments
 (0)