Skip to content

Commit

Permalink
Merge pull request #1532 from progress0407/log-eureka-registry-response
Browse files Browse the repository at this point in the history
Add debug log for sending registry information in Eureka server
  • Loading branch information
cancecen authored May 29, 2024
2 parents efa975d + 209b53e commit 015400c
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 015400c

Please sign in to comment.