mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-07 20:55:53 +00:00
Fix severity check on ~ScopedStream
This commit is contained in:
@@ -86,10 +86,7 @@ Journal::ScopedStream::ScopedStream (Stream const& stream, std::ostream& manip (
|
|||||||
Journal::ScopedStream::~ScopedStream ()
|
Journal::ScopedStream::~ScopedStream ()
|
||||||
{
|
{
|
||||||
if (! m_ostream.str().empty())
|
if (! m_ostream.str().empty())
|
||||||
{
|
m_sink.write (m_severity, m_ostream.str());
|
||||||
if (m_sink.active (m_severity))
|
|
||||||
m_sink.write (m_severity, m_ostream.str());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Journal::ScopedStream::init ()
|
void Journal::ScopedStream::init ()
|
||||||
|
|||||||
Reference in New Issue
Block a user