New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LoggingSystem not available on shutdown to log DisposableBean#destroy invocations #26660
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Please try this example, 'DisposableBean' is called, but log does not output in STS with Spring Boot 2.5.0, BUT can output in 2.4.x, 2.3.x |
Thanks. Something changed in Spring Boot |
OK, thanks very much |
With Spring Boot 2.5 we change the logging system to always register a shutdown hook (See #25046). What's happening now is that when the app terminates both the logging system and the |
Fixing this one is a bit tricky. I have something on this branch, but I'd like someone else from the team to review it. It works by tracking |
I run Spring Boot 2.5.0 application in Spring Tool Suite (Version: 3.9.7.RELEASE). Stopping that application by STS 'stop' button, I find
destroy
of DisposableBean not excuted. If I return to Spring Boot 2.4.x or 2.3.x, the function will be fine.Is it an issue or be lated with Spring Tool Suite? Refer to my code, in 2.5.0, ‘Shutting down...’ loggger won't print...
The text was updated successfully, but these errors were encountered: