Skip to content

Commit

Permalink
Add detailed logging for container path and query parameters
Browse files Browse the repository at this point in the history
Introduced logging statements to capture container path, ID, body, and query parameters.
  • Loading branch information
Gcolon021 committed Oct 1, 2024
1 parent 1b740f2 commit 4220651
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public Response postProxy(String containerId, String path, String body, Multival
if (containerIsNOTAResource(containerId)) {
return Response.status(400, "container name not trustworthy").build();
}

LOG.info("path={}, containerId={}, body={}, queryParams={}", path, containerId, body, queryParams);

try {
URI uri =
new URIBuilder().setScheme("http").setHost(containerId).setPath(path).setParameters(processParams(queryParams)).build();
Expand All @@ -57,6 +60,9 @@ public Response getProxy(String containerId, String path, MultivaluedMap<String,
if (containerIsNOTAResource(containerId)) {
return Response.status(400, "container name not trustworthy").build();
}

LOG.info("path={}, containerId={}, queryParams={}", path, containerId, queryParams);

try {
URI uri =
new URIBuilder().setScheme("http").setHost(containerId).setPath(path).setParameters(processParams(queryParams)).build();
Expand Down

0 comments on commit 4220651

Please sign in to comment.