Let curl debug follow qt debug settings
This commit is contained in:
parent
263090a518
commit
40e7f32846
1 changed files with 4 additions and 1 deletions
|
@ -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_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())
|
if(Settings::instance()->ignoreSslErrors())
|
||||||
{
|
{
|
||||||
curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
curl_easy_setopt(_curl, CURLOPT_SSL_VERIFYPEER, 0L);
|
||||||
|
|
Loading…
Reference in a new issue