Let curl debug follow qt debug settings

This commit is contained in:
Anton Thomasson 2022-01-18 20:41:08 +01:00
parent 263090a518
commit 40e7f32846

View file

@ -14,7 +14,10 @@ CurlRequester::CurlRequester(QUrl addr, Role role)
curl_easy_setopt(_curl, CURLOPT_URL, addr.toString().toStdString().c_str());
curl_easy_setopt(_curl, CURLOPT_VERBOSE, 1L);
QLoggingCategory* defaultLoggingCategory = QLoggingCategory::defaultCategory();
curl_easy_setopt(_curl, CURLOPT_VERBOSE, defaultLoggingCategory->isDebugEnabled());
if(Settings::instance()->ignoreSslErrors())
{
curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 0L);