Log outbound XML in msg encoders.
[shibboleth/opensaml2.git] / saml / saml1 / binding / impl / SAML1ArtifactEncoder.cpp
index b592b7b..672aeeb 100644 (file)
@@ -110,6 +110,10 @@ long SAML1ArtifactEncoder::encode(
     // Obtain a fresh artifact.
     if (!artifactGenerator)
         throw BindingException("SAML 1.x Artifact Encoder requires an ArtifactGenerator instance.");
+    
+    if (log.isDebugEnabled())
+        log.debugStream() << "marshalled assertion: " << *xmlObject << logging::eol;
+    
     auto_ptr_char recipientID(recipient ? recipient->getEntityID() : NULL);
     log.debug("obtaining new artifact for relying party (%s)", recipientID.get() ? recipientID.get() : "unknown");
     auto_ptr<SAMLArtifact> artifact(artifactGenerator->generateSAML1Artifact(recipient));