no actual error messages when curl requests fail
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 24 May 2018 03:08:13 +0000 (23:08 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 24 May 2018 03:08:13 +0000 (23:08 -0400)
gtk2_ardour/ardour_http.cc

index 320e1f81278cffa9f54265729473a05430301e8f..a67522d90df6af3c3fe2d84f035eb23a5c12f6a5 100644 (file)
@@ -186,7 +186,6 @@ HttpGet::get (const char* url)
 #endif
        _status = _result = -1;
        if (!_curl || !url) {
-               PBD::error << "HttpGet::get() not initialized (or NULL url)"<< endmsg;
 #ifdef ARDOURCURLDEBUG
                std::cerr << "HttpGet::get() not initialized (or NULL url)"<< std::endl;
 #endif
@@ -194,7 +193,6 @@ HttpGet::get (const char* url)
        }
 
        if (strncmp ("http://", url, 7) && strncmp ("https://", url, 8)) {
-               PBD::error << "HttpGet::get() not a http[s] URL"<< endmsg;
 #ifdef ARDOURCURLDEBUG
                std::cerr << "HttpGet::get() not a http[s] URL"<< std::endl;
 #endif
@@ -218,14 +216,12 @@ HttpGet::get (const char* url)
        CCERR ("CURLINFO_RESPONSE_CODE,");
 
        if (_result) {
-               PBD::error << string_compose (_("HTTP request failed: (%1) %2"), _result, error_buffer) << endmsg;
 #ifdef ARDOURCURLDEBUG
                std::cerr << string_compose (_("HTTP request failed: (%1) %2"), _result, error_buffer) << std::endl;
 #endif
                return NULL;
        }
        if (_status != 200) {
-               PBD::error << string_compose (_("HTTP request status: %1"), _status) << endmsg;
 #ifdef ARDOURCURLDEBUG
                std::cerr << string_compose (_("HTTP request status: %1"), _status) << std::endl;
 #endif