Quieter logs in unit tests (145,594 lines -> 2,134 lines) #6809
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR
Inline_test_quiet_logs
library, to silence logs for passing unit testsstdout
out_channel
open
ed at the top of any module containing unit tests to silence the output on stdout from any passing test130428/145594 = ~90%
lines in the log file here (80% of the file by size)Staged_ledger
-- accounted for ~38%Transition_handler
-- accounted for ~17%Bootstrap_controller
-- accounted for ~16%Consensus
-- accounted for ~25%Ledger_catchup
-- accounted for ~14%Transition_frontier
-- accounted for ~17%The log file size is reduced from 145594 lines to 2134, most of which is build logs. Byte-wise, this takes us down from 45,201,099 (44MB) to 562,455 (552KB).
Of the remaining lines:
go: finding library vX.Y.Z
(Most of the rest is a failing test that I was struggling to find amidst 44MB of logs).
Checklist: