Skip to content
This repository has been archived by the owner on Apr 13, 2020. It is now read-only.

Commit

Permalink
Merging Signalk changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RBerliner committed Apr 18, 2017
1 parent c5fa7e5 commit 0ed510a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
.classpath
.idea
*.iml
/pomDev.xml
1 change: 1 addition & 0 deletions conf/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/self.json
/log4j.properties
/log4j2.json
/signalk-attr.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ public void process(Exchange exchange) throws Exception {
// NMEA - good
// System.out.println(msg);
exchange.getIn().setBody(msg);
logger.info(msg.toString());
sendNmea(exchange);
if(logger.isDebugEnabled())
logger.debug(msg.toString());
sendNmea(exchange);
ok = true;
} else if (msg.startsWith("{") && msg.endsWith("}")) {
Json json = Json.read(msg);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public void process(Exchange exchange) throws Exception {
}

String body = exchange.getIn().getBody(String.class);
logger.info(body + "\n");
if(logger.isDebugEnabled())
logger.debug(body + "\n");
String src = exchange.getIn().getHeader(MSG_SRC_BUS, String.class);
SignalKModel model = nmea.handle(body, src);
if(model!=null){
Expand Down

0 comments on commit 0ed510a

Please sign in to comment.