Skip to content

Commit

Permalink
Add debug log for sending registry information in Eureka server
Browse files Browse the repository at this point in the history
  • Loading branch information
progress0407 committed Jan 28, 2024
1 parent efa975d commit 209b53e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 <em>jersey</em> resource that handles request related to all
Expand 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";
Expand Down Expand Up @@ -161,6 +164,7 @@ public Response getContainers(@PathParam("version") String version,
.build();
}
CurrentRequestVersion.remove();
logger.debug("Sent registry information to client.");
return response;
}

Expand Down

0 comments on commit 209b53e

Please sign in to comment.