mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +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:
@@ -115,7 +115,7 @@ Cluster::load (Section const& nodes)
|
||||
|
||||
if (!boost::regex_match (n, match, re))
|
||||
{
|
||||
JLOG (j_.error) <<
|
||||
JLOG (j_.error()) <<
|
||||
"Malformed entry: '" << n << "'";
|
||||
return false;
|
||||
}
|
||||
@@ -125,14 +125,14 @@ Cluster::load (Section const& nodes)
|
||||
|
||||
if (!id)
|
||||
{
|
||||
JLOG (j_.error) <<
|
||||
JLOG (j_.error()) <<
|
||||
"Invalid node identity: " << match[1];
|
||||
return false;
|
||||
}
|
||||
|
||||
if (member (*id))
|
||||
{
|
||||
JLOG (j_.warning) <<
|
||||
JLOG (j_.warn()) <<
|
||||
"Duplicate node identity: " << match[1];
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user