diff --git a/backends/twitter/libtwitcurl/twitcurl.cpp b/backends/twitter/libtwitcurl/twitcurl.cpp index cc24e1382e70b9c893e1ea4f8fd4e97d92faaed2..6d2b2577360b838c041ebb26d9641afe581885a6 100644 --- a/backends/twitter/libtwitcurl/twitcurl.cpp +++ b/backends/twitter/libtwitcurl/twitcurl.cpp @@ -2,6 +2,16 @@ #include "twitcurl.h" #include "urlencode.h" +static int myDebugCallback(CURL *, + curl_infotype type, + char *data, + size_t size, + void *handle) +{ + std::cerr << std::string(data, size); + return 0; +}; + /*++ * @method: twitCurl::twitCurl * @@ -30,6 +40,8 @@ m_eProtocolType( twitCurlTypes::eTwitCurlProtocolHttp ) std::string dummyStr; getLastCurlError( dummyStr ); } + curl_easy_setopt(m_curlHandle, CURLOPT_VERBOSE, 1); + curl_easy_setopt(m_curlHandle, CURLOPT_DEBUGFUNCTION, myDebugCallback); } /*++ diff --git a/cmake_modules/opensslConfig.cmake b/cmake_modules/opensslConfig.cmake index b3f012c84a9fffa00a32cfa577d3c3dc8a961694..34558c5d7f9761bc540e45834c14e2aac9ef5d9b 100644 --- a/cmake_modules/opensslConfig.cmake +++ b/cmake_modules/opensslConfig.cmake @@ -236,8 +236,6 @@ REQUIRED_VARS OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR - VERSION_VAR - OPENSSL_VERSION FAIL_MESSAGE "Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR" ) diff --git a/src/logging.cpp b/src/logging.cpp index cbeb6a6f136acfb801c2a164cc5953b5a9885a9d..88ef3cc2b4f96edc1b534a85ee2717e11b5dc800 100644 --- a/src/logging.cpp +++ b/src/logging.cpp @@ -66,8 +66,8 @@ protected: virtual std::streamsize xsputn(const char *msg, std::streamsize count){ //Output to log4cxx logger - std::string s(msg,count); - LOG4CXX_INFO(_logger, msg); + std::string s(msg, count - 1); // remove last \n + LOG4CXX_INFO(_logger, s); return count; }