mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Access Journal::Stream using member functions (RIPD-1087):
Replace Journal public data members with member function accessors in order to make Journal lighter weight. The change makes a Journal cheaper to pass by value. Also add missing stream checks (e.g., calls to JLOG) to avoid text processing that ultimately will not be stored in the log.
This commit is contained in:
@@ -72,7 +72,7 @@ void PathRequests::updateAll (std::shared_ptr <ReadView const> const& inLedger,
|
||||
bool newRequests = app_.getLedgerMaster().isNewPathRequest();
|
||||
bool mustBreak = false;
|
||||
|
||||
JLOG (mJournal.trace) <<
|
||||
JLOG (mJournal.trace()) <<
|
||||
"updateAll seq=" << cache->getLedger()->seq() <<
|
||||
", " << requests.size() << " requests";
|
||||
|
||||
@@ -174,7 +174,7 @@ void PathRequests::updateAll (std::shared_ptr <ReadView const> const& inLedger,
|
||||
}
|
||||
while (!shouldCancel ());
|
||||
|
||||
JLOG (mJournal.debug) <<
|
||||
JLOG (mJournal.debug()) <<
|
||||
"updateAll complete: " << processed << " processed and " <<
|
||||
removed << " removed";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user