Updated logging with new nest module.

This commit is contained in:
Admin
2016-03-08 16:40:32 -06:00
parent a5860417c1
commit 113ce0ca59
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@
<groupId>com.bwssystems.HABridge</groupId>
<artifactId>ha-bridge</artifactId>
<version>1.4.1</version>
<version>1.4.1a</version>
<packaging>jar</packaging>
<name>HA Bridge</name>
@@ -43,7 +43,7 @@
<dependency>
<groupId>com.github.bwssytems</groupId>
<artifactId>nest-controller</artifactId>
<version>1.0.5</version>
<version>1.0.6</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>

View File

@@ -92,7 +92,7 @@ public class SystemControl {
// http://ip_address:port/system/logmgmt/loggers gets the logger info for the bridge
get (SYSTEM_CONTEXT + "/logmgmt/loggers/:all", "application/json", (request, response) -> {
log.info("Get loggers info with showAll argument: " + request.params(":all"));
log.debug("Get loggers info with showAll argument: " + request.params(":all"));
Boolean showAll = false;
if(request.params(":all").equals("true"))
showAll = true;
@@ -113,6 +113,7 @@ public class SystemControl {
});
// http://ip_address:port/system/logmgmt/update which changes logging parameters for the process
put(SYSTEM_CONTEXT + "/logmgmt/update", "application/json", (request, response) -> {
log.debug("update loggers: " + request.body());
response.status(200);
LoggerInfo updateLoggers[];
updateLoggers = new Gson().fromJson(request.body(), LoggerInfo[].class);