Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the logging shutdown hook by default
This commit updates LoggingApplicationListener to register the logging shutdown hook by default. The hook is detrimental in a war deployment as it may pin parts of an application in memory after it has been undeployed. For this reason, the hook is still disabled by default in war deployments. This is achieved by setting an attribute on the servlet context in SpringBootServletInitializer that is then consumed via the Environment by LoggingApplicationListener. Closes gh-25046
- Loading branch information
1 parent
33b3753
commit 9713bfc
Showing
6 changed files
with
33 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters