Make the startup of application context quieter
Every app that requests config from the server starts a mini application context. We can make it a bit less verbose by shutting off the startup info logger in the SpringApplication.
This commit is contained in:
@@ -98,6 +98,10 @@ public class NativeEnvironmentRepository
|
||||
ConfigurableEnvironment environment = getEnvironment(profile);
|
||||
builder.environment(environment);
|
||||
builder.web(false).bannerMode(Mode.OFF);
|
||||
if (!logger.isDebugEnabled()) {
|
||||
// Make the mini-application startup less verbose
|
||||
builder.logStartupInfo(false);
|
||||
}
|
||||
String[] args = getArgs(config, profile, label);
|
||||
// Explicitly set the listeners (to exclude logging listener which would change
|
||||
// log levels in the caller)
|
||||
|
||||
Reference in New Issue
Block a user