Skip to content

Commit

Permalink
Merge pull request quarkusio#40936 from geoand/infinispan-devservice
Browse files Browse the repository at this point in the history
Polish Infinispan Dev Service logging
  • Loading branch information
geoand authored Jun 3, 2024
2 parents 58da69f + 08b6d4f commit 7f33278
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,8 @@ private void runInfinispanDevService(String clientName,
Map<String, RunningDevService> newDevServices,
Map<String, String> properties) {
try {
log.infof("Starting Dev Service for connection %s", clientName);

InfinispanDevServicesConfig namedDevServiceConfig = config.devService.devservices;
log.infof("Apply Dev Services config %s", namedDevServiceConfig);
RunningDevService devService = startContainer(clientName, dockerStatusBuildItem, namedDevServiceConfig,
launchMode.getLaunchMode(),
!devServicesSharedNetworkBuildItem.isEmpty(), globalDevServicesConfig.timeout, properties);
Expand Down Expand Up @@ -190,7 +189,6 @@ private RunningDevService startContainer(String clientName, DockerStatusBuildIte
}

String configPrefix = getConfigPrefix(clientName);
log.info("Config prefix " + configPrefix);

boolean needToStart = !ConfigUtils.isPropertyPresent(configPrefix + "hosts")
&& !ConfigUtils.isPropertyPresent(configPrefix + "server-list");
Expand All @@ -205,6 +203,8 @@ private RunningDevService startContainer(String clientName, DockerStatusBuildIte
"Please configure 'quarkus.infinispan-client.hosts' or 'quarkus.infinispan-client.uri' or get a working docker instance");
return null;
}
log.infof("Starting Dev Service for connection %s", clientName);
log.infof("Apply Dev Services config %s", devServicesConfig);

Supplier<RunningDevService> infinispanServerSupplier = () -> {
QuarkusInfinispanContainer infinispanContainer = new QuarkusInfinispanContainer(clientName, devServicesConfig,
Expand Down

0 comments on commit 7f33278

Please sign in to comment.