mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 07:10:53 +00:00
refactor: Use more scoped enums (#7086)
This commit is contained in:
@@ -73,19 +73,19 @@ Env::AppBundle::AppBundle(
|
||||
beast::unit_test::Suite& suite,
|
||||
std::unique_ptr<Config> config,
|
||||
std::unique_ptr<Logs> logs,
|
||||
beast::severities::Severity thresh)
|
||||
beast::Severity thresh)
|
||||
: AppBundle()
|
||||
{
|
||||
using namespace beast::severities;
|
||||
using beast::Severity;
|
||||
if (logs)
|
||||
{
|
||||
setDebugLogSink(logs->makeSink("Debug", KFatal));
|
||||
setDebugLogSink(logs->makeSink("Debug", Severity::Fatal));
|
||||
}
|
||||
else
|
||||
{
|
||||
logs = std::make_unique<SuiteLogs>(suite);
|
||||
// Use kFatal threshold to reduce noise from STObject.
|
||||
setDebugLogSink(std::make_unique<SuiteJournalSink>("Debug", KFatal, suite));
|
||||
setDebugLogSink(std::make_unique<SuiteJournalSink>("Debug", Severity::Fatal, suite));
|
||||
}
|
||||
auto tk = std::make_unique<ManualTimeKeeper>();
|
||||
timeKeeper = tk.get();
|
||||
|
||||
Reference in New Issue
Block a user