Skip to content

Commit

Permalink
MONDRIAN - extracting method for logging the XMLA request. The XMLA r…
Browse files Browse the repository at this point in the history
…equest can contain secure data. This allows us to override the method so that the secure data will not be logged.

[git-p4: depot-paths = "//open/mondrian/": change = 13141]
  • Loading branch information
Matt Campbell authored and Matt Campbell committed Oct 29, 2009
1 parent 6aa4385 commit d8100c1
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/main/mondrian/xmla/impl/DefaultXmlaServlet.java
Expand Up @@ -128,11 +128,7 @@ protected void unmarshallSoapMessage(
Element envElem = soapDoc.getDocumentElement();

if (LOGGER.isDebugEnabled()) {
final StringWriter writer = new StringWriter();
writer.write("XML/A request content");
writer.write(nl);
XmlaUtil.element2Text(envElem, writer);
LOGGER.debug(writer.toString());
logXmlaRequest(envElem);
}

if ("Envelope".equals(envElem.getLocalName())) {
Expand Down Expand Up @@ -192,6 +188,14 @@ protected void unmarshallSoapMessage(
}
}

protected void logXmlaRequest(Element envElem) {
final StringWriter writer = new StringWriter();
writer.write("XML/A request content");
writer.write(nl);
XmlaUtil.element2Text(envElem, writer);
LOGGER.debug(writer.toString());
}

/**
* See if there is a "mustUnderstand" header element.
* If there is a BeginSession element, then generate a session id and
Expand Down

0 comments on commit d8100c1

Please sign in to comment.