Skip to content

Revisit BeansException warn logging after startup failure [SPR-13663] #18238

@spring-projects-issues

Description

@spring-projects-issues

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:

Referenced from: commits 03585f2, 5d6aab3, cdf6eb9

Backported to: 4.1.9, 3.2.16

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions