Commit 5ab2b472 authored by Dave Syer's avatar Dave Syer

Be more lax with --debug parsing

parent c6efac87
...@@ -156,7 +156,10 @@ public class AutoConfigurationReport implements ApplicationContextAware, ...@@ -156,7 +156,10 @@ public class AutoConfigurationReport implements ApplicationContextAware,
} }
private boolean shouldLogReport() { 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(); || !this.context.isActive();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment