mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Cleanups in beast::Journal:
The Journal API is affected. There are two uses for the Journal::Severity enum: o It is used to declare a threshold which log messages must meet in order to be logged. o It declares the current logging level which will be compared to the threshold. Those uses that affect the threshold are now named threshold() rather than severity() to make the uses easier to distinguish. Additionally, Journal no longer carries a Severity variable. All handling of the threshold() is now delegated to the Journal::Sink. Sinks are no longer constructed with a default threshold of kWarning; their threshold must be passed in on construction.
This commit is contained in:
@@ -107,14 +107,12 @@ public:
|
||||
|
||||
Logic (clock_type& clock, Store& store,
|
||||
Checker& checker, beast::Journal journal)
|
||||
: m_journal (journal, Reporting::logic)
|
||||
: m_journal (journal)
|
||||
, m_clock (clock)
|
||||
, m_store (store)
|
||||
, m_checker (checker)
|
||||
, livecache_ (m_clock,
|
||||
beast::Journal (journal, Reporting::livecache))
|
||||
, bootcache_ (store, m_clock,
|
||||
beast::Journal (journal, Reporting::bootcache))
|
||||
, livecache_ (m_clock, journal)
|
||||
, bootcache_ (store, m_clock, journal)
|
||||
, m_whenBroadcast (m_clock.now())
|
||||
, m_squelches (m_clock)
|
||||
{
|
||||
|
||||
@@ -39,29 +39,6 @@ struct Reporting
|
||||
|
||||
// Report nodes detailed information
|
||||
static bool const dump_nodes = false;
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
// Reports from Network (and children)
|
||||
static beast::Journal::Severity const network = beast::Journal::kWarning;
|
||||
|
||||
// Reports from simulation Node (and children)
|
||||
static beast::Journal::Severity const node = beast::Journal::kAll;
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
// Reports from Logic
|
||||
static beast::Journal::Severity const logic = beast::Journal::kAll;
|
||||
|
||||
// Reports from Livecache
|
||||
static beast::Journal::Severity const livecache = beast::Journal::kAll;
|
||||
|
||||
// Reports from Bootcache
|
||||
static beast::Journal::Severity const bootcache = beast::Journal::kAll;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user