Log unknown curl errors.
authorScott Cantor <cantor.2@osu.edu>
Thu, 14 Feb 2008 18:18:57 +0000 (18:18 +0000)
committerScott Cantor <cantor.2@osu.edu>
Thu, 14 Feb 2008 18:18:57 +0000 (18:18 +0000)
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;
                        }