Skip to content

Commit

Permalink
Small changes to log statements
Browse files Browse the repository at this point in the history
  • Loading branch information
retrodaredevil committed Oct 16, 2020
1 parent f72bcae commit 2c0544a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public void receive(List<Packet> packets, InstantType instantType) {
LOGGER.error("name file does not exist. file: " + nameFile);
return;
} catch (IOException e) {
LOGGER.error("Could not read name file", e);
LOGGER.debug("Could not read name file", e); // debug because this is so common
return;
}
final List<String> lines;
Expand All @@ -63,7 +63,7 @@ public void receive(List<Packet> packets, InstantType instantType) {
String[] split1 = line1.split(" ");
String message = split1[split1.length - 1];
if (!"YES".equals(message)) {
LOGGER.warn("Unsuccessful message: " + message + ". name=" + name);
LOGGER.debug("Unsuccessful message: " + message + ". name=" + name); // debug since this is so common
return;
}
String[] split2 = line2.split("=");
Expand All @@ -76,7 +76,7 @@ public void receive(List<Packet> packets, InstantType instantType) {
return;
}
if (temperatureRaw == 0 && line1.contains("crc=00")) { // when it's a bad reading, the crc is 0
LOGGER.warn("crc=00! name=" + name + " line1: " + line1 + " line2: " + line2);
LOGGER.debug("crc=00! name=" + name + " line1: " + line1 + " line2: " + line2); // debug since this is so common
return;
}
long timeTaken = System.currentTimeMillis() - startTime;
Expand Down

0 comments on commit 2c0544a

Please sign in to comment.