Skip to content

Commit

Permalink
fix: Log actual POST body
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Apr 12, 2024
1 parent d021ace commit cf8240e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public CreateState create(CreateRequest createRequest) throws RegistrationExcept

CreateState createState = null;

if (log.isDebugEnabled()) log.debug("Driver request for CREATE REQUEST " + createRequest + " to: " + uriString);
if (log.isDebugEnabled()) log.debug("Driver request for CREATE REQUEST " + body + " to: " + uriString);

try (CloseableHttpResponse httpResponse = (CloseableHttpResponse) this.getHttpClient().execute(httpPost)) {

Expand Down Expand Up @@ -147,7 +147,7 @@ public UpdateState update(UpdateRequest updateRequest) throws RegistrationExcept

UpdateState updateState = null;

if (log.isDebugEnabled()) log.debug("Driver request for UPDATE REQUEST " + updateRequest + " to: " + uriString);
if (log.isDebugEnabled()) log.debug("Driver request for UPDATE REQUEST " + body + " to: " + uriString);

try (CloseableHttpResponse httpResponse = (CloseableHttpResponse) this.getHttpClient().execute(httpPost)) {

Expand Down Expand Up @@ -223,7 +223,7 @@ public DeactivateState deactivate(DeactivateRequest deactivateRequest) throws Re

DeactivateState deactivateState = null;

if (log.isDebugEnabled()) log.debug("Driver request for DEACTIVATE REQUEST " + deactivateRequest + " to: " + uriString);
if (log.isDebugEnabled()) log.debug("Driver request for DEACTIVATE REQUEST " + body + " to: " + uriString);

try (CloseableHttpResponse httpResponse = (CloseableHttpResponse) this.getHttpClient().execute(httpPost)) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public CreateState create(String method, CreateRequest createRequest) throws Reg

CreateState createState;

if (log.isDebugEnabled()) log.debug("Request for create request " + createRequest + " to: " + uriString);
if (log.isDebugEnabled()) log.debug("Request for create request " + body + " to: " + uriString);

try (CloseableHttpResponse httpResponse = (CloseableHttpResponse) this.getHttpClient().execute(httpPost)) {

Expand Down Expand Up @@ -156,7 +156,7 @@ public UpdateState update(String method, UpdateRequest updateRequest) throws Reg

UpdateState updateState;

if (log.isDebugEnabled()) log.debug("Request for update request " + updateRequest + " to: " + uriString);
if (log.isDebugEnabled()) log.debug("Request for update request " + body + " to: " + uriString);

try (CloseableHttpResponse httpResponse = (CloseableHttpResponse) this.getHttpClient().execute(httpPost)) {

Expand Down Expand Up @@ -220,7 +220,7 @@ public DeactivateState deactivate(String method, DeactivateRequest deactivateReq

DeactivateState deactivateState;

if (log.isDebugEnabled()) log.debug("Request for deactivate request " + deactivateRequest + " to: " + uriString);
if (log.isDebugEnabled()) log.debug("Request for deactivate request " + body + " to: " + uriString);

try (CloseableHttpResponse httpResponse = (CloseableHttpResponse) this.getHttpClient().execute(httpPost)) {

Expand Down

0 comments on commit cf8240e

Please sign in to comment.