Skip to content

Commit

Permalink
np-47469: removed debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
torarnet committed Sep 4, 2024
1 parent 0a44996 commit 918780f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ public static boolean clientIsCustomerAdministrator(RequestInfo requestInfo) {
*/
public static String getBackendAccessToken() throws IOException, InterruptedException {
var cognitoTokenUrl = getCognitoTokenUrl();
logger.debug("cognitoTokenUrl={}", cognitoTokenUrl);
var payload = GRANT_TYPE_PAYLOAD;

var request = newBuilder(cognitoTokenUrl)
Expand All @@ -96,7 +95,6 @@ public static String getBackendAccessToken() throws IOException, InterruptedExce

HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString(StandardCharsets.UTF_8));
logger.debug("Response from Cognito: statusCode={}, body:{}", response.statusCode(), response.body());
var jsonTree = JsonUtils.dtoObjectMapper.readTree(response.body());
return jsonTree.get(ACCESS_TOKEN).textValue();
}
Expand Down

0 comments on commit 918780f

Please sign in to comment.