Log unknown curl errors.
authorcantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Thu, 14 Feb 2008 18:18:57 +0000 (18:18 +0000)
committercantor <cantor@de75baf8-a10c-0410-a50a-987c0e22f00f>
Thu, 14 Feb 2008 18:18:57 +0000 (18:18 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@467 de75baf8-a10c-0410-a50a-987c0e22f00f

xmltooling/util/CurlURLInputStream.cpp

index bba89a3..61652b5 100644 (file)
@@ -41,6 +41,7 @@
 #include <xercesc/util/TranscodingException.hpp>
 #include <xercesc/util/PlatformUtils.hpp>
 
+#include <xmltooling/logging.h>
 #include <xmltooling/util/CurlURLInputStream.hpp>
 
 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;
                        }