Merge pull request #317 from martinsumner/mas-i1765-reducelog

Reduce logging
This commit is contained in:
Martin Sumner 2020-08-05 19:42:22 +01:00 committed by GitHub
commit 5bc137e4ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -1316,7 +1316,12 @@ update_levelzero(L0Size, {PushedTree, PushedIdx, MinSQN, MaxSQN},
Due = CacheTooBig and JitterCheck,
{UpdState0, _L0Bloom} = maybe_roll_memory(UpdState, Due, false),
LogSubs = [NewL0Size, Due, State#state.work_ongoing],
leveled_log:log_timer("P0031", LogSubs, SW),
case Due of
true ->
leveled_log:log_timer("P0031", LogSubs, SW);
_ ->
ok
end,
UpdState0
end.