Log outbound XML in msg encoders.
[shibboleth/opensaml2.git] / saml / saml2 / binding / impl / SAML2ArtifactEncoder.cpp
index 75401c9..e4a9cd3 100644 (file)
@@ -162,6 +162,9 @@ long SAML2ArtifactEncoder::encode(
             xmlObject->marshall((DOMDocument*)NULL,&sigs,credential);
         }
     }
+
+    if (log.isDebugEnabled())
+        log.debugStream() << "marshalled message: " << *xmlObject << logging::eol;
     
     // Store the message. Last step in storage will be to delete the XML.
     log.debug("storing artifact and content in map");