From 671a0c2b8c13c9c14e16ec9a6fc615dcf7a7214c Mon Sep 17 00:00:00 2001 From: cantor Date: Thu, 14 Feb 2008 18:18:57 +0000 Subject: [PATCH] Log unknown curl errors. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/trunk@467 de75baf8-a10c-0410-a50a-987c0e22f00f --- xmltooling/util/CurlURLInputStream.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } -- 2.1.4