Only log http requests if `dbg_curl 1`

closed #7823
This commit is contained in:
ChillerDragon 2024-01-19 12:38:31 +08:00
parent c4135f117b
commit e59c9a6450

View file

@ -507,7 +507,8 @@ void CHttp::RunLoop()
while(!NewRequests.empty())
{
auto &pRequest = NewRequests.front();
dbg_msg("http", "task: %s %s", CHttpRequest::GetRequestType(pRequest->m_Type), pRequest->m_aUrl);
if(g_Config.m_DbgCurl)
dbg_msg("http", "task: %s %s", CHttpRequest::GetRequestType(pRequest->m_Type), pRequest->m_aUrl);
CURL *pEH = curl_easy_init();
if(!pEH)