Defer devtools logging

Defer logging from devtools classes until the context is prepared.

Closes gh-14453
This commit is contained in:
Phillip Webb
2018-09-12 15:52:47 -07:00
parent bc92becfd8
commit c4caf2705a
4 changed files with 76 additions and 5 deletions

View File

@@ -4,7 +4,8 @@ org.springframework.boot.devtools.restart.RestartScopeInitializer
# Application Listeners
org.springframework.context.ApplicationListener=\
org.springframework.boot.devtools.restart.RestartApplicationListener
org.springframework.boot.devtools.restart.RestartApplicationListener,\
org.springframework.boot.devtools.logger.DevToolsLogFactory.Listener
# Auto Configure
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\