mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-24 21:15:58 +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:
@@ -35,7 +35,7 @@ STValidation::STValidation (SerialIter& sit, bool checkSignature)
|
||||
|
||||
if (checkSignature && !isValid ())
|
||||
{
|
||||
JLOG (debugJournal().trace)
|
||||
JLOG (debugJournal().trace())
|
||||
<< "Invalid validation" << getJson (0);
|
||||
Throw<std::runtime_error> ("Invalid validation");
|
||||
}
|
||||
@@ -113,7 +113,7 @@ bool STValidation::isValid (uint256 const& signingHash) const
|
||||
}
|
||||
catch (std::exception const&)
|
||||
{
|
||||
JLOG (debugJournal().info)
|
||||
JLOG (debugJournal().info())
|
||||
<< "Exception validating validation";
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user