Skip to content

Commit

Permalink
Solving log errors
Browse files Browse the repository at this point in the history
Signed-off-by: clinique <[email protected]>
  • Loading branch information
clinique committed Dec 27, 2024
1 parent c9e7599 commit 02a4249
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public M2MMessageParser(Ipx800EventListener listener) {
public void unsolicitedUpdate(String data) {
if ("OK".equals(data)) { // If OK, do nothing special
} else if ("? Bad command".equals(data)) {
logger.warn(data);
logger.warn("{}", data);
} else if (IO_PATTERN.matcher(data).matches()) {
PortDefinition portDefinition = PortDefinition.fromM2MCommand(expectedResponse);
decodeDataLine(portDefinition, data);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Map<Integer, Double> getPorts(PortDefinition portDefinition) {
result.put(Integer.parseInt(node.getNodeName().replace(searched, "")) + 1,
Double.parseDouble(node.getTextContent().replace("dn", "1").replace("up", "0")));
} catch (NumberFormatException e) {
logger.warn(e.getMessage());
logger.warn("{}", e.getMessage());
}
});
return result;
Expand Down

0 comments on commit 02a4249

Please sign in to comment.