Log improvements
Log on bad CRC, and also not seeing SST timing logs, so log these more frequently
This commit is contained in:
parent
b3e189b012
commit
31d4346806
2 changed files with 4 additions and 1 deletions
|
@ -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"}},
|
||||
|
|
|
@ -1060,6 +1060,7 @@ crc_check_slot(FullBin) ->
|
|||
Lengths = {B1P, B1L, B2L, B3L, B4L},
|
||||
{Lengths, Rest};
|
||||
_ ->
|
||||
leveled_log:log("SST09", []),
|
||||
crc_wonky
|
||||
end.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue