Log improvements
Continuation of log review and conversion to using central log function. Fixup of convoluted shutdown process between Bookie, Inker and Inker's Clerk
This commit is contained in:
parent
c6fc8d1768
commit
4e46c9735d
6 changed files with 128 additions and 91 deletions
|
@ -69,8 +69,7 @@ add_to_index(L0Index, L0Size, LevelMinus1, LedgerSQN, TreeList) ->
|
|||
{infinity, 0, L0Index},
|
||||
LM1List),
|
||||
NewL0Size = length(LM1List) + L0Size,
|
||||
io:format("Rolled L0 cache to size ~w in ~w microseconds~n",
|
||||
[NewL0Size, timer:now_diff(os:timestamp(), SW)]),
|
||||
leveled_log:log_timer("PM001", [NewL0Size], SW),
|
||||
if
|
||||
MinSQN > LedgerSQN ->
|
||||
{MaxSQN,
|
||||
|
@ -90,8 +89,7 @@ to_list(Slots, FetchFun) ->
|
|||
end,
|
||||
[],
|
||||
SlotList),
|
||||
io:format("L0 cache converted to list of size ~w in ~w microseconds~n",
|
||||
[length(FullList), timer:now_diff(os:timestamp(), SW)]),
|
||||
leveled_log:log_timer("PM002", [length(FullList)], SW),
|
||||
FullList.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue