mirror of
https://github.com/XRPLF/rippled.git
synced 2026-03-13 08:12:26 +00:00
Fix OTelCollector: Journal::info is a method, not a bool member
The beast::Journal stream accessors (info, warn, etc.) are methods that return a Stream object. They must be called with () to test if the log level is active. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -631,7 +631,7 @@ OTelCollectorImp::OTelCollectorImp(
|
||||
Journal journal)
|
||||
: m_journal(journal), m_prefix(prefix)
|
||||
{
|
||||
if (m_journal.info)
|
||||
if (m_journal.info())
|
||||
m_journal.info() << "OTelCollector starting: endpoint=" << endpoint
|
||||
<< " prefix=" << m_prefix;
|
||||
|
||||
@@ -684,13 +684,13 @@ OTelCollectorImp::OTelCollectorImp(
|
||||
// Create the OTel Meter for creating instruments.
|
||||
m_otelMeter = m_provider->GetMeter("rippled_metrics", "1.0.0");
|
||||
|
||||
if (m_journal.info)
|
||||
if (m_journal.info())
|
||||
m_journal.info() << "OTelCollector started successfully";
|
||||
}
|
||||
|
||||
OTelCollectorImp::~OTelCollectorImp()
|
||||
{
|
||||
if (m_journal.info)
|
||||
if (m_journal.info())
|
||||
m_journal.info() << "OTelCollector shutting down";
|
||||
if (m_provider)
|
||||
{
|
||||
@@ -698,7 +698,7 @@ OTelCollectorImp::~OTelCollectorImp()
|
||||
m_provider->ForceFlush();
|
||||
m_provider->Shutdown();
|
||||
}
|
||||
if (m_journal.info)
|
||||
if (m_journal.info())
|
||||
m_journal.info() << "OTelCollector stopped";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user