mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Make debugLog() return a beast::Journal (RIPD-1209):
Previously, writes using debugLog() tagged every entry with "TRC:". Now users of debugLog() must specify the severity level they want their information logged at.
This commit is contained in:
@@ -78,7 +78,7 @@ void STLedgerEntry::setSLEType ()
|
||||
type_ = mFormat->getType ();
|
||||
if (!setType (mFormat->elements))
|
||||
{
|
||||
if (auto j = debugLog())
|
||||
if (auto j = debugLog().error())
|
||||
{
|
||||
j << "Ledger entry not valid for type " << mFormat->getName ();
|
||||
j << "Object: " << getJson (0);
|
||||
@@ -141,7 +141,7 @@ bool STLedgerEntry::thread (uint256 const& txID, std::uint32_t ledgerSeq,
|
||||
{
|
||||
uint256 oldPrevTxID = getFieldH256 (sfPreviousTxnID);
|
||||
|
||||
JLOG (debugLog())
|
||||
JLOG (debugLog().info())
|
||||
<< "Thread Tx:" << txID << " prev:" << oldPrevTxID;
|
||||
|
||||
if (oldPrevTxID == txID)
|
||||
|
||||
Reference in New Issue
Block a user