See gh-14621
This commit is contained in:
Johnny Lim
2018-09-27 15:46:13 +09:00
committed by Stephane Nicoll
parent da1fde6a5f
commit 1eca492c5e
12 changed files with 41 additions and 47 deletions

View File

@@ -54,10 +54,9 @@ public class EmbeddedDataSourceConfiguration implements BeanClassLoaderAware {
@Bean
public EmbeddedDatabase dataSource() {
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder()
this.database = new EmbeddedDatabaseBuilder()
.setType(EmbeddedDatabaseConnection.get(this.classLoader).getType())
.setName(this.properties.determineDatabaseName());
this.database = builder.build();
.setName(this.properties.determineDatabaseName()).build();
return this.database;
}

View File

@@ -128,13 +128,12 @@ public class ConditionEvaluationReportLoggingListener
}
}
else {
if (isCrashReport && this.logger.isInfoEnabled()
&& !this.logger.isDebugEnabled()) {
logMessage("debug");
}
if (this.logger.isDebugEnabled()) {
this.logger.debug(new ConditionEvaluationReportMessage(this.report));
}
else if (isCrashReport) {
logMessage("debug");
}
}
}
}