Reduce console noise coming from unit tests:

A few unit tests have historically generated a lot of noise
to the console from log writes.  This noise was not useful
and made it harder to locate actual test failures.

By changing the log level of these tests from
- severities::kError to
- severities::kDisabled
it was possible to remove that noise coming from the logs.
This commit is contained in:
Scott Schurr
2022-05-13 17:06:14 -07:00
committed by Nik Bougalis
parent ee60b16b3a
commit 0839a202c9
19 changed files with 116 additions and 60 deletions

View File

@@ -465,7 +465,7 @@ struct LedgerServer
assert(param.initLedgers > 0);
createAccounts(param.initAccounts);
createLedgerHistory();
app.logs().threshold(beast::severities::Severity::kWarning);
app.logs().threshold(beast::severities::kWarning);
}
/**
@@ -567,7 +567,10 @@ public:
PeerSetBehavior behavior = PeerSetBehavior::Good,
InboundLedgersBehavior inboundBhvr = InboundLedgersBehavior::Good,
PeerFeature peerFeature = PeerFeature::LedgerReplayEnabled)
: env(suite, jtx::envconfig(jtx::port_increment, 3))
: env(suite,
jtx::envconfig(jtx::port_increment, 3),
nullptr,
beast::severities::kDisabled)
, app(env.app())
, ledgerMaster(env.app().getLedgerMaster())
, inboundLedgers(