Skip to content

Commit

Permalink
Log DeleteOptions body
Browse files Browse the repository at this point in the history
  • Loading branch information
nhirakawa committed Jun 16, 2022
1 parent 51f887a commit 5bff029
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,9 +282,10 @@ protected void handleDelete(URL requestUrl, long gracePeriodSeconds, DeletionPro
deleteOptions.setDryRun(Collections.singletonList("All"));
}

LOG.debug("Executing delete for {} with {} grace period seconds", requestUrl, gracePeriodSeconds);
String deleteOptionsBody = JSON_MAPPER.writeValueAsString(deleteOptions);
LOG.debug("Executing delete for {} with body {}", requestUrl, deleteOptionsBody);

HttpRequest.Builder requestBuilder = httpClient.newHttpRequestBuilder().delete(JSON, JSON_MAPPER.writeValueAsString(deleteOptions)).url(requestUrl);
HttpRequest.Builder requestBuilder = httpClient.newHttpRequestBuilder().delete(JSON, deleteOptionsBody).url(requestUrl);
handleResponse(requestBuilder, null, Collections.<String, String>emptyMap());
}

Expand Down

0 comments on commit 5bff029

Please sign in to comment.