Updated edit screen field layout with bootstrap grid. Added error

checking for HTTP handler.
This commit is contained in:
Admin
2017-02-16 13:36:23 -06:00
parent 6116d37675
commit 61156e9820
4 changed files with 35 additions and 9 deletions

View File

@@ -125,8 +125,16 @@ public class HTTPHandler {
+ e.getMessage(), e);
}
}
if (theContent == null)
theContent = "";
} else {
log.warn("HTTP response code was not an expected successful response of between 200 - 299, the code was: " + response.getStatusLine());
try {
EntityUtils.consume(response.getEntity()); // close out
// inputstream
// ignore
// content
} catch (Exception e) {
//noop
}
}
} catch (IOException e) {
log.warn("Error calling out to HA gateway: IOException in log", e);