tobyweston / temperature-machine

Data logger for multiple DS18B20 temperature sensors on one or more machines
Apache License 2.0
67 stars 22 forks source link

Improve information in CrcFailure #49

Open tobyweston opened 6 years ago

tobyweston commented 6 years ago

When CrcFailures are output, they don't show anything interesting.

Change

case class CrcFailure() extends Error(...")

to

case class CrcFailure(scratchPad: String) extends Error("...")

Then ensure when it's output in the log, it displays the scratchpad.

Also investigate why the stream message isn't displayed. From a recent log:

Fri 19-Jan-2018 09:09:24.835 [temperature-reading-thread-1] ERROR CrcFailure()