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

@ -200,7 +200,7 @@
{"PC008", {"PC008",
{info, "Merge from level ~w to merge into ~w files below"}}, {info, "Merge from level ~w to merge into ~w files below"}},
{"PC009", {"PC009",
{info, "File ~s to simply switch levels to level ~w"}}, {debug, "File ~s to simply switch levels to level ~w"}},
{"PC010", {"PC010",
{info, "Merge to be commenced for FileToMerge=~s with MSN=~w"}}, {info, "Merge to be commenced for FileToMerge=~s with MSN=~w"}},
{"PC011", {"PC011",
@ -216,7 +216,7 @@
{info, "Slow fetch from SFT ~w of ~w us at level ~w " {info, "Slow fetch from SFT ~w of ~w us at level ~w "
++ "with result ~w"}}, ++ "with result ~w"}},
{"PC017", {"PC017",
{info, "Notified clerk of manifest change"}}, {debug, "Notified clerk of manifest change"}},
{"PC018", {"PC018",
{info, "Saved manifest file"}}, {info, "Saved manifest file"}},
{"PC019", {"PC019",
@ -224,9 +224,9 @@
{"PC020", {"PC020",
{warn, "Empty prompt deletions at ManifestSQN=~w"}}, {warn, "Empty prompt deletions at ManifestSQN=~w"}},
{"PC021", {"PC021",
{info, "Prompting deletions at ManifestSQN=~w"}}, {debug, "Prompting deletions at ManifestSQN=~w"}},
{"PC022", {"PC022",
{info, "Storing reference to deletions at ManifestSQN=~w"}}, {debug, "Storing reference to deletions at ManifestSQN=~w"}},
{"PC023", {"PC023",
{info, "At level=~w file_count=~w avg_mem=~w " {info, "At level=~w file_count=~w avg_mem=~w "
++ "file with most memory fn=~s p=~w mem=~w"}}, ++ "file with most memory fn=~s p=~w mem=~w"}},

View file

@ -1316,7 +1316,12 @@ update_levelzero(L0Size, {PushedTree, PushedIdx, MinSQN, MaxSQN},
Due = CacheTooBig and JitterCheck, Due = CacheTooBig and JitterCheck,
{UpdState0, _L0Bloom} = maybe_roll_memory(UpdState, Due, false), {UpdState0, _L0Bloom} = maybe_roll_memory(UpdState, Due, false),
LogSubs = [NewL0Size, Due, State#state.work_ongoing], 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 UpdState0
end. end.