Fix PR comments

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-08-27 11:58:37 +01:00
parent df07f92ed7
commit c4464f5122
8 changed files with 17 additions and 65 deletions

View File

@@ -25,7 +25,7 @@
namespace beast {
Journal::StructuredJournalImpl* Journal::m_structuredJournalImpl = nullptr;
std::unique_ptr<Journal::StructuredJournalImpl> Journal::m_structuredJournalImpl;
//------------------------------------------------------------------------------
@@ -179,26 +179,18 @@ Journal::ScopedStream::~ScopedStream()
if (s == "\n")
{
if (m_structuredJournalImpl)
{
m_structuredJournalImpl->flush(
&m_sink, m_level, "", m_attributes.get());
}
else
{
m_sink.write(m_level, "");
}
}
else
{
if (m_structuredJournalImpl)
{
m_structuredJournalImpl->flush(
&m_sink, m_level, s, m_attributes.get());
}
else
{
m_sink.write(m_level, s);
}
}
}
}