diff --git a/service-registration/eureka/src/main/java/io/smallrye/stork/serviceregistration/eureka/EurekaServiceRegistrar.java b/service-registration/eureka/src/main/java/io/smallrye/stork/serviceregistration/eureka/EurekaServiceRegistrar.java index bc55047d..66d1a729 100644 --- a/service-registration/eureka/src/main/java/io/smallrye/stork/serviceregistration/eureka/EurekaServiceRegistrar.java +++ b/service-registration/eureka/src/main/java/io/smallrye/stork/serviceregistration/eureka/EurekaServiceRegistrar.java @@ -76,10 +76,14 @@ private Uni registerApplicationInstance(WebClient client, String applicati .put("name", "MyOwn")) .put("leaseInfo", new JsonObject().put("renewalIntervalInSecs", 10000).put("durationInSecs", 10000)); - return client.post(path + "/eureka/apps/" + applicationId) + Uni response = client.post(path + "/eureka/apps/" + applicationId) .putHeader("content-type", "application/json") .putHeader("accept", "application/json") - .sendJson(instance).replaceWithVoid(); + .sendJson(instance) + .invoke(() -> log.info("Instance registered for service {}: {}", applicationId, registration)) + .replaceWithVoid(); + + return response; } diff --git a/service-registration/static-list/src/main/java/io/smallrye/stork/serviceregistration/staticlist/StaticListServiceRegistrar.java b/service-registration/static-list/src/main/java/io/smallrye/stork/serviceregistration/staticlist/StaticListServiceRegistrar.java index bb3659dc..03ea9cbd 100644 --- a/service-registration/static-list/src/main/java/io/smallrye/stork/serviceregistration/staticlist/StaticListServiceRegistrar.java +++ b/service-registration/static-list/src/main/java/io/smallrye/stork/serviceregistration/staticlist/StaticListServiceRegistrar.java @@ -28,6 +28,7 @@ public Uni registerServiceInstance(String serviceName, Metadata