refactor: Use more scoped enums (#7086)

This commit is contained in:
Alex Kremer
2026-05-11 16:39:48 +01:00
committed by GitHub
parent 779b49cd93
commit cdee9a675c
379 changed files with 2771 additions and 2864 deletions

View File

@@ -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();