Skip to content

Commit

Permalink
Improve warnings and error messages in DevServicesDatasourceProcessor
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet authored and ebullient committed Jan 24, 2023
1 parent ffa1408 commit a65bbf1
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ private RunningDevService startDevDb(String dbName,
boolean explicitlyDisabled = !(dataSourceBuildTimeConfig.devservices.enabled.orElse(true));
if (explicitlyDisabled) {
//explicitly disabled
log.debug("Not starting devservices for " + (dbName == null ? "default datasource" : dbName)
+ " as it has been disabled in the config");
log.debug("Not starting Dev Services for " + (dbName == null ? "default datasource" : dbName)
+ " as it has been disabled in the configuration");
return null;
}

Expand All @@ -222,8 +222,8 @@ private RunningDevService startDevDb(String dbName,
List<DevServicesDatasourceConfigurationHandlerBuildItem> configHandlers = configurationHandlerBuildItems
.get(defaultDbKind.get());
if (devDbProvider == null || configHandlers == null) {
log.warn("Unable to start devservices for " + (dbName == null ? "default datasource" : dbName)
+ " as this datasource type (" + defaultDbKind.get() + ") does not support devservices");
log.warn("Unable to start Dev Services for " + (dbName == null ? "default datasource" : dbName)
+ " as this datasource type (" + defaultDbKind.get() + ") does not support Dev Services");
return null;
}

Expand All @@ -232,7 +232,7 @@ private RunningDevService startDevDb(String dbName,
if (i.getCheckConfiguredFunction().test(dbName)) {
//this database has explicit configuration
//we don't start the devservices
log.debug("Not starting devservices for " + (dbName == null ? "default datasource" : dbName)
log.debug("Not starting Dev Services for " + (dbName == null ? "default datasource" : dbName)
+ " as it has explicit configuration");
return null;
}
Expand Down

0 comments on commit a65bbf1

Please sign in to comment.