Implement a debug Journal

This commit is contained in:
Nik Bougalis
2016-01-27 11:22:54 -08:00
parent 57d6ab091c
commit 5ac744ff66
28 changed files with 243 additions and 338 deletions

View File

@@ -596,9 +596,14 @@ LedgerMaster::fixMismatch (Ledger::ref ledger)
if (otherLedger && (otherLedger->getHash () == *hash))
{
// we closed the seam
CondLog (invalidate != 0, lsWARNING, LedgerMaster) <<
"Match at " << lSeq << ", " << invalidate <<
" prior ledgers invalidated";
if (invalidate != 0)
{
JLOG (m_journal.warning)
<< "Match at " << lSeq
<< ", " << invalidate
<< " prior ledgers invalidated";
}
return;
}
}
@@ -609,8 +614,11 @@ LedgerMaster::fixMismatch (Ledger::ref ledger)
}
// all prior ledgers invalidated
CondLog (invalidate != 0, lsWARNING, LedgerMaster) << "All " <<
invalidate << " prior ledgers invalidated";
if (invalidate != 0)
{
JLOG (m_journal.warning) <<
"All " << invalidate << " prior ledgers invalidated";
}
}
void