-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement
Milestone
Description
Phil Webb opened SPR-13663 and commented
#16626 added warn logging to AbstractApplicationContext to ensure that BeansExceptions don't get missed.
Although the intention is good, it has the unwanted side effect of causing most refresh failures to log stacktraces twice. This is particularly obvious with Spring Boot applications where a simple startup failure results in multiple stack-traces.
We could provide a feature flag to suppress the message.
Affects: 3.2.15, 4.1.8, 4.2.2
Issue Links:
- Exceptions thrown during AbstractApplicationContext.refresh() not being logged right when they are caught [SPR-12010] #16626 Exceptions thrown during AbstractApplicationContext.refresh() not being logged right when they are caught
- Do not swallow exception cause when context refresh fails [SPR-17549] #22081 Do not swallow exception cause when context refresh fails
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestype: enhancementA general enhancementA general enhancement