Updated vera info class logging calls to be debug only.

This commit is contained in:
Admin
2015-08-26 11:48:51 -05:00
parent 41f68f58b0
commit 439b081bd5

View File

@@ -71,13 +71,13 @@ public class VeraInfo {
// This function executes the url against the vera
protected String doHttpGETRequest(String url) {
log.info("calling GET on URL: " + url);
log.debug("calling GET on URL: " + url);
HttpGet httpGet = new HttpGet(url);
try {
HttpResponse response = httpClient.execute(httpGet);
String theContent = EntityUtils.toString(response.getEntity()); //read content for data
EntityUtils.consume(response.getEntity()); //close out inputstream ignore content
log.info("GET on URL responded: " + response.getStatusLine().getStatusCode());
log.debug("GET on URL responded: " + response.getStatusLine().getStatusCode());
if(response.getStatusLine().getStatusCode() == 200){
return theContent;
}