From 209b53eed3a4f74f85da6de2e5a4fe25e00042de Mon Sep 17 00:00:00 2001 From: progress0407 Date: Mon, 29 Jan 2024 01:49:15 +0900 Subject: [PATCH] Add debug log for sending registry information in Eureka server --- .../com/netflix/eureka/resources/ApplicationsResource.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eureka-core/src/main/java/com/netflix/eureka/resources/ApplicationsResource.java b/eureka-core/src/main/java/com/netflix/eureka/resources/ApplicationsResource.java index 5ae4b33fa1..175fe8db9a 100755 --- a/eureka-core/src/main/java/com/netflix/eureka/resources/ApplicationsResource.java +++ b/eureka-core/src/main/java/com/netflix/eureka/resources/ApplicationsResource.java @@ -43,6 +43,8 @@ import com.netflix.eureka.registry.ResponseCacheImpl; import com.netflix.eureka.registry.Key; import com.netflix.eureka.util.EurekaMonitors; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * A jersey resource that handles request related to all @@ -54,6 +56,7 @@ @Path("/{version}/apps") @Produces({"application/xml", "application/json"}) public class ApplicationsResource { + private static final Logger logger = LoggerFactory.getLogger(ApplicationsResource.class); private static final String HEADER_ACCEPT = "Accept"; private static final String HEADER_ACCEPT_ENCODING = "Accept-Encoding"; private static final String HEADER_CONTENT_ENCODING = "Content-Encoding"; @@ -161,6 +164,7 @@ public Response getContainers(@PathParam("version") String version, .build(); } CurrentRequestVersion.remove(); + logger.debug("Sent registry information to client."); return response; }