SpringBeanAutowiringSupport should log at warn level when autowiring fails #26925
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
I recently upgraded to a newer wildfly version (20-->23) and wildfly now init's webservices very early, before spring initilization is kicked off, so the autowiring in SpringBeanAutowiringSupport fails.
Obviously, that is not a spring issue, but these issues would be WAY easier to find if the failure to wire was at least a Warn level log statement. It appears that the logging in the processInjectionBasedOnCurrentContext method is debug, as it is designed to be called from other places than the constructor itself, but I think there should be a warn or error level log of the failure to wire in the constructor, to lead people to this class when their are external factors that cause this autowire to work differently.
The text was updated successfully, but these errors were encountered: