Add env variable to turn on curl verbose

This commit is contained in:
Marek Roszko 2023-07-10 21:40:50 -04:00
parent 9514f057dc
commit 171c44507a
1 changed files with 6 additions and 0 deletions

View File

@ -132,6 +132,12 @@ KICAD_CURL_EASY::KICAD_CURL_EASY() :
curl_easy_setopt( m_CURL, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA );
#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() );
wxString version( GetBuildVersion() );