Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Polish Infinispan Dev Service logging #40936

Merged
merged 2 commits into from
Jun 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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