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

@@ -35,7 +35,8 @@ STValidation::STValidation (SerialIter& sit, bool checkSignature)
if (checkSignature && !isValid ())
{
WriteLog (lsTRACE, Ledger) << "Invalid validation " << getJson (0);
JLOG (debugJournal().trace)
<< "Invalid validation" << getJson (0);
Throw<std::runtime_error> ("Invalid validation");
}
}
@@ -112,7 +113,8 @@ bool STValidation::isValid (uint256 const& signingHash) const
}
catch (std::exception const&)
{
WriteLog (lsINFO, Ledger) << "exception validating validation";
JLOG (debugJournal().info)
<< "Exception validating validation";
return false;
}
}