Skip to content

Commit

Permalink
In CaretHttpManager, change logging level of not important messages f…
Browse files Browse the repository at this point in the history
…rom INFO to FINE.
  • Loading branch information
John Harwell committed Aug 28, 2018
1 parent b78a029 commit 1c774d3
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Common/CaretHttpManager.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ logHeadersFromRequest(const QNetworkRequest& request,
infoText.appendWithNewLine(" Contains no headers");
}

CaretLogInfo(infoText);
CaretLogFine(infoText);
}

void
Expand Down Expand Up @@ -160,7 +160,7 @@ logHeadersFromReply(const QNetworkReply& reply,
infoText.appendWithNewLine(" Contains no headers");
}

CaretLogInfo(infoText);
CaretLogFine(infoText);
}

void CaretHttpManager::httpRequest(const CaretHttpRequest &request, CaretHttpResponse &response)
Expand All @@ -183,7 +183,7 @@ void CaretHttpManager::httpRequest(const CaretHttpRequest &request, CaretHttpRes
CaretHttpRequest redirectedRequest = request;
redirectedRequest.m_url = response.m_redirectionUrl.toString();

CaretLogInfo("Received and processing redirection request from "
CaretLogFine("Received and processing redirection request from "
+ request.m_url
+ " to "
+ redirectedRequest.m_url);
Expand Down Expand Up @@ -222,14 +222,14 @@ void CaretHttpManager::httpRequestPrivate(const CaretHttpRequest &request, Caret
{
QString unencoded = myCaretMgr->m_authList[i].m_user + ":" + myCaretMgr->m_authList[i].m_pass;
myRequest.setRawHeader("Authorization", "Basic " + unencoded.toLocal8Bit().toBase64());
CaretLogInfo("Found auth for URL " + request.m_url);
CaretLogFine("Found auth for URL " + request.m_url);
have_auth = true;
break;
}
}
if (!have_auth)
{
CaretLogInfo("NO AUTH FOUND for URL " + request.m_url);
CaretLogFine("NO AUTH FOUND for URL " + request.m_url);
}
QNetworkReply* myReply = NULL;
/*
Expand Down Expand Up @@ -280,7 +280,7 @@ void CaretHttpManager::httpRequestPrivate(const CaretHttpRequest &request, Caret
#endif // QT_VERSION
myRequest.setUrl(myUrl);
myReply = myQNetMgr->post(myRequest, postData);
CaretLogInfo("POST ARGUMENTS URL: " + myUrl.toString());
CaretLogFine("POST ARGUMENTS URL: " + myUrl.toString());
}
break;
case POST_FILE:
Expand All @@ -300,7 +300,7 @@ void CaretHttpManager::httpRequestPrivate(const CaretHttpRequest &request, Caret
#endif // QT_VERSION
myRequest.setUrl(myUrl);
myReply = myQNetMgr->post(myRequest, postUploadFile);
CaretLogInfo("POST FILE URL: " + myUrl.toString());
CaretLogFine("POST FILE URL: " + myUrl.toString());
}
else {

Expand All @@ -320,7 +320,7 @@ void CaretHttpManager::httpRequestPrivate(const CaretHttpRequest &request, Caret
myUrl.setQuery(myUrlQuery);
#endif // QT_VERSION
myRequest.setUrl(myUrl);
CaretLogInfo("GET URL: " + myUrl.toString());
CaretLogFine("GET URL: " + myUrl.toString());
myReply = myQNetMgr->get(myRequest);
break;
case HEAD:
Expand All @@ -336,7 +336,7 @@ void CaretHttpManager::httpRequestPrivate(const CaretHttpRequest &request, Caret
myUrl.setQuery(myUrlQuery);
#endif // QT_VERSION
myRequest.setUrl(myUrl);
CaretLogInfo("HEAD URL: " + myUrl.toString());
CaretLogFine("HEAD URL: " + myUrl.toString());
myReply = myQNetMgr->head(myRequest);
break;
};
Expand Down Expand Up @@ -400,7 +400,7 @@ void CaretHttpManager::setAuthentication(const AString& url, const AString& user
{
CaretHttpManager* myCaretMgr = getHttpManager();
AString myServerString = getServerString(url);
CaretLogInfo("Setting auth for server " + myServerString);
CaretLogFine("Setting auth for server " + myServerString);
for (int i = 0; i < (int)myCaretMgr->m_authList.size(); ++i)
{
if (myServerString == myCaretMgr->m_authList[i].m_serverString)
Expand Down

0 comments on commit 1c774d3

Please sign in to comment.