Work around apparent logging issue on Linux.
authorScott Cantor <cantor.2@osu.edu>
Tue, 4 Aug 2009 18:49:52 +0000 (18:49 +0000)
committerScott Cantor <cantor.2@osu.edu>
Tue, 4 Aug 2009 18:49:52 +0000 (18:49 +0000)
saml/saml2/binding/impl/SAML2ECPEncoder.cpp

index 5e6c614..a869598 100644 (file)
@@ -225,8 +225,10 @@ long SAML2ECPEncoder::encode(
         stringstream s;
         s << *rootElement;
         
-        if (log.isDebugEnabled())
-            log.debug("marshalled envelope:\n%s", s.str().c_str());
+        if (log.isDebugEnabled()) {
+            string forlog(s.str());
+            log.debug("marshalled envelope:\n%s", forlog.c_str());
+        }
 
         log.debug("sending serialized envelope");
         long ret = genericResponse.sendResponse(s);