From: cantor Date: Thu, 14 Feb 2008 18:18:57 +0000 (+0000) Subject: Log unknown curl errors. X-Git-Tag: 1.4.1~361 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=commitdiff_plain;h=671a0c2b8c13c9c14e16ec9a6fc615dcf7a7214c Log unknown curl errors. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@467 de75baf8-a10c-0410-a50a-987c0e22f00f --- diff --git a/xmltooling/util/CurlURLInputStream.cpp b/xmltooling/util/CurlURLInputStream.cpp index bba89a3..61652b5 100644 --- a/xmltooling/util/CurlURLInputStream.cpp +++ b/xmltooling/util/CurlURLInputStream.cpp @@ -41,6 +41,7 @@ #include #include +#include #include using namespace xmltooling; @@ -222,6 +223,9 @@ CurlURLInputStream::readBytes(XMLByte* const toFill break; default: + logging::Category::getInstance(XMLTOOLING_LOGCAT"libcurl.NetAccessor").error( + "curl NetAccessor encountered error from libcurl (%d)", msg->data.result + ); ThrowXMLwithMemMgr1(NetAccessorException, XMLExcepts::NetAcc_InternalError, fURLSource.getURLText(), fMemoryManager); break; }