From a38875d6dd813a52157bda1743054cebf42f29b1 Mon Sep 17 00:00:00 2001 From: Mark Roszko Date: Tue, 11 Jul 2023 01:42:51 +0000 Subject: [PATCH] Add env variable to turn on curl verbose --- common/kicad_curl/kicad_curl_easy.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/common/kicad_curl/kicad_curl_easy.cpp b/common/kicad_curl/kicad_curl_easy.cpp index d11133c264..3917ad7bd1 100644 --- a/common/kicad_curl/kicad_curl_easy.cpp +++ b/common/kicad_curl/kicad_curl_easy.cpp @@ -130,10 +130,16 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() : curl_easy_setopt( m_CURL, CURLOPT_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS ); #endif - #ifdef _WIN32 +#ifdef _WIN32 // We need this to use the Windows Certificate store curl_easy_setopt( m_CURL, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA ); - #endif +#endif + + if( wxGetEnv( wxT( "KICAD_CURL_VERBOSE" ), nullptr ) ) + { + // note: curl verbose will end up in stderr + curl_easy_setopt( m_CURL, CURLOPT_VERBOSE, 1L ); + } wxPlatformInfo platformInfo; wxString application( Pgm().App().GetAppName() );