Only log report if INFO enabled

This commit is contained in:
Dave Syer 2013-11-05 11:28:01 +00:00
parent 5ab2b472a8
commit fa998287ab

View File

@ -139,7 +139,7 @@ public class AutoConfigurationReport implements ApplicationContextAware,
scanPositiveDecisionsForBeansBootCreated();
}
finally {
if (shouldLogReport()) {
if (shouldLogReport() && logger.isInfoEnabled()) {
logger.info("Created beans:");
for (CreatedBeanInfo info : this.beansCreated) {
logger.info(info);