From 05993a2a992389e59f5fbeb4951b3d97a567c455 Mon Sep 17 00:00:00 2001 From: Scott Cantor Date: Tue, 4 Aug 2009 18:49:52 +0000 Subject: [PATCH] Work around apparent logging issue on Linux. --- saml/saml2/binding/impl/SAML2ECPEncoder.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp index 5e6c614..a869598 100644 --- a/saml/saml2/binding/impl/SAML2ECPEncoder.cpp +++ b/saml/saml2/binding/impl/SAML2ECPEncoder.cpp @@ -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); -- 2.1.4