From 5ab2b472a8b7fccd187fef00924aa2462bde28fc Mon Sep 17 00:00:00 2001 From: Dave Syer Date: Tue, 5 Nov 2013 10:21:54 +0000 Subject: [PATCH] Be more lax with --debug parsing --- .../boot/autoconfigure/report/AutoConfigurationReport.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); }