Skip to content

Commit

Permalink
fixing logs bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mattG117 committed Oct 23, 2024
1 parent 9f910d5 commit a2560fb
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public class MetadataService {
private String metadataServiceWorkloadsSparqlQuery;

private JsonNode getQueryResult(JsonNode responseBody) {
logger.info("Metadata service response body: {}{}", responseBody.toString().substring(0, 1000), responseBody.toString().length() > 1000 ? "..." : "");
String responseBodyString = responseBody.toString();
String responseBodyLog = responseBodyString.length() > 1000 ? responseBodyString.substring(0, 1000) + "..." : responseBodyString;
logger.info("Metadata service response body: {}", responseBodyLog);
return responseBody.get("results").get("bindings");
}

Expand Down

0 comments on commit a2560fb

Please sign in to comment.