Skip to content

Commit

Permalink
fix(soap): replace debug logging into trace of soap request and response
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias-vandaele committed Jan 20, 2025
1 parent 59eefdc commit 881c6ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public Object execute(OutboundConnectorContext context) throws Exception {
.withPreserveNamespaces(false)
.build()
.toJson(XmlUtilities.xmlStringToDocument(soapResponseMessage));
LOG.debug("Response to connector runtime: \n{}", response.toPrettyString());
LOG.trace("Response to connector runtime: \n{}", response.toPrettyString());
return response;
} catch (WebServiceException e) {
if (e instanceof SoapFaultClientException soapFaultClientException) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class LoggingInterceptor implements ClientInterceptor {
public boolean handleRequest(MessageContext messageContext) throws WebServiceClientException {
if (messageContext.getRequest() instanceof SoapMessage soapMessage) {
String document = XmlUtilities.xmlDocumentToString(soapMessage.getDocument(), false, true);
LOG.debug("Request: \n{}", document);
LOG.trace("Request: \n{}", document);
}
return true;
}
Expand All @@ -30,7 +30,7 @@ public boolean handleRequest(MessageContext messageContext) throws WebServiceCli
public boolean handleResponse(MessageContext messageContext) throws WebServiceClientException {
if (messageContext.getResponse() instanceof SoapMessage soapMessage) {
String document = XmlUtilities.xmlDocumentToString(soapMessage.getDocument(), false, true);
LOG.debug("Response: \n{}", document);
LOG.trace("Response: \n{}", document);
}
return true;
}
Expand Down

0 comments on commit 881c6ad

Please sign in to comment.