Revisit BeansException warn logging after startup failure [SPR-13663] #18238
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Phil Webb opened SPR-13663 and commented
#16626 added warn logging to
AbstractApplicationContext
to ensure thatBeansExceptions
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
The text was updated successfully, but these errors were encountered: