diff --git a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/report/AutoConfigurationReport.java b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/report/AutoConfigurationReport.java index 0d26ab7be5..122f8320de 100644 --- a/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/report/AutoConfigurationReport.java +++ b/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/report/AutoConfigurationReport.java @@ -156,7 +156,10 @@ public class AutoConfigurationReport implements ApplicationContextAware, } private boolean shouldLogReport() { - return this.context.getEnvironment().getProperty("debug", Boolean.class, false) + String debug = this.context.getEnvironment().getProperty("debug", "false") + .toLowerCase().trim(); + return debug.equals("true") || debug.equals("") // + // inactive context is a sign that it crashed || !this.context.isActive(); }