Log improvements

Log on bad CRC, and also not seeing SST timing logs, so log these more
frequently
This commit is contained in:
martinsumner 2017-01-02 18:54:19 +00:00
parent b3e189b012
commit 31d4346806
2 changed files with 4 additions and 1 deletions

View file

@ -17,7 +17,7 @@
-define(PUT_LOGPOINT, 20000).
-define(HEAD_LOGPOINT, 160000).
-define(GET_LOGPOINT, 160000).
-define(SST_LOGPOINT, 200000).
-define(SST_LOGPOINT, 20000).
-define(LOG_LEVEL, [info, warn, error, critical]).
-define(SAMPLE_RATE, 16).
@ -248,6 +248,8 @@
{info, "Exit called and now clearing ~s"}},
{"SST08",
{info, "Completed creation of ~s at level ~w with max sqn ~w"}},
{"SST09",
{warn, "Read request exposes slot with bad CRC"}},
{"CDB01",
{info, "Opening file for writing with filename ~s"}},

View file

@ -1060,6 +1060,7 @@ crc_check_slot(FullBin) ->
Lengths = {B1P, B1L, B2L, B3L, B4L},
{Lengths, Rest};
_ ->
leveled_log:log("SST09", []),
crc_wonky
end.