log stream operator doesn't work on clang
authorScott Cantor <cantor.2@osu.edu>
Sat, 8 Dec 2012 03:26:38 +0000 (03:26 +0000)
committerScott Cantor <cantor.2@osu.edu>
Sat, 8 Dec 2012 03:26:38 +0000 (03:26 +0000)
xmltooling/soap/impl/SOAPClient.cpp

index 01a1789..e8c924d 100644 (file)
@@ -185,13 +185,9 @@ Envelope* SOAPClient::receive()
 
     Category& log = Category::getInstance(XMLTOOLING_LOGCAT".SOAPClient");
     if (log.isDebugEnabled()) {
-#ifdef XMLTOOLING_LOG4SHIB
-        log.debugStream() << "received XML:\n" << *(doc->getDocumentElement()) << logging::eol;
-#else
         string buf;
         XMLHelper::serialize(doc->getDocumentElement(), buf);
         log.debugStream() << "received XML:\n" << buf << logging::eol;
-#endif
     }
     
     auto_ptr<XMLObject> xmlObject(XMLObjectBuilder::buildOneFromElement(doc->getDocumentElement(), true));