mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
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:
committed by
Nik Bougalis
parent
ee60b16b3a
commit
0839a202c9
@@ -24,12 +24,13 @@
|
||||
#include <ripple/json/json_reader.h>
|
||||
#include <ripple/protocol/jss.h>
|
||||
#include <ripple/rpc/impl/Handler.h>
|
||||
#include <test/jtx/Env.h>
|
||||
|
||||
#include <atomic>
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
#include <random>
|
||||
#include <string>
|
||||
#include <test/jtx/Env.h>
|
||||
#include <thread>
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -44,7 +45,11 @@ class PerfLog_test : public beast::unit_test::suite
|
||||
|
||||
// We're only using Env for its Journal. That Journal gives better
|
||||
// coverage in unit tests.
|
||||
test::jtx::Env env_{*this};
|
||||
test::jtx::Env env_{
|
||||
*this,
|
||||
test::jtx::envconfig(),
|
||||
nullptr,
|
||||
beast::severities::kDisabled};
|
||||
beast::Journal j_{env_.app().journal("PerfLog_test")};
|
||||
|
||||
struct Fixture
|
||||
|
||||
Reference in New Issue
Block a user