From 072d6b40c7f0d1144d018c04ff1f59efb4d7a626 Mon Sep 17 00:00:00 2001 From: David Welch Date: Wed, 9 Mar 2016 13:58:55 -0700 Subject: [PATCH] Disable startup logging for Bootstrap environment Fixes gh-100 --- .../cloud/bootstrap/BootstrapApplicationListener.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java index 72961ffe..4051658d 100644 --- a/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java +++ b/spring-cloud-context/src/main/java/org/springframework/cloud/bootstrap/BootstrapApplicationListener.java @@ -121,7 +121,9 @@ public class BootstrapApplicationListener .profiles(environment.getActiveProfiles()).bannerMode(Mode.OFF) .environment(bootstrapEnvironment) .properties("spring.application.name:" + configName) - .registerShutdownHook(false).web(false); + .registerShutdownHook(false) + .logStartupInfo(false) + .web(false); List> sources = new ArrayList<>(); for (String name : names) { Class cls = ClassUtils.resolveClassName(name, null);