Improve performance

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-09-01 18:15:20 +01:00
parent 37aa933462
commit dbb14191cb
12 changed files with 293 additions and 336 deletions

View File

@@ -56,9 +56,7 @@ Logs::Sink::write(beast::severities::Severity level, std::string&& text)
}
void
Logs::Sink::writeAlways(
beast::severities::Severity level,
std::string&& text)
Logs::Sink::writeAlways(beast::severities::Severity level, std::string&& text)
{
logs_.write(level, partition_, std::move(text), console());
}
@@ -162,14 +160,6 @@ Logs::operator[](std::string const& name)
return get(name);
}
beast::Journal
Logs::journal(
std::string const& name,
std::optional<beast::Journal::JsonLogAttributes> attributes)
{
return beast::Journal{get(name), name, std::move(attributes)};
}
beast::severities::Severity
Logs::threshold() const
{