Skip to content

Commit

Permalink
ALS-6511: Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Aug 15, 2024
1 parent 99069d8 commit ab53290
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.parameters.RequestBody;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@OpenAPIDefinition(info = @Info(title = "Pic-sure API", version = "1.0.0", description = "This is the Pic-sure API."))
@Path("/")
@Produces("application/json")
@Consumes("application/json")
public class PicsureRS {

private final Logger logger = LoggerFactory.getLogger(PicsureRS.class);

@Inject
PicsureInfoService infoService;

Expand Down Expand Up @@ -162,7 +166,10 @@ public Response queryResult(
+ "returned by the /query endpoint as the \"picsureResultId\" in the response object"
) @PathParam("queryId") UUID queryId, @Parameter QueryRequest credentialsQueryRequest, @Context HttpHeaders headers
) {
return queryService.queryResult(queryId, credentialsQueryRequest, headers);
Response response = queryService.queryResult(queryId, credentialsQueryRequest, headers);
logger.info(response.getMediaType().toString());
logger.info(response.getEntity().toString());
return response;
}

@POST
Expand Down

0 comments on commit ab53290

Please sign in to comment.