Switch over more files to use the new Log functions

This commit is contained in:
Vinnie Falco
2013-05-22 11:04:11 -07:00
parent 8c880d9275
commit a5ab694e48
10 changed files with 396 additions and 400 deletions

View File

@@ -643,7 +643,7 @@ Ledger::pointer Ledger::getSQL(const std::string& sql)
ret->setAccepted();
if (ret->getHash() != ledgerHash)
{
if (sLog(lsERROR))
if (ShouldLog (lsERROR, Ledger))
{
Log(lsERROR) << "Failed on ledger";
Json::Value p;
@@ -1463,13 +1463,13 @@ bool Ledger::walkLedger()
{
std::vector<SHAMapMissingNode> missingNodes1, missingNodes2;
mAccountStateMap->walkMap(missingNodes1, 32);
if (sLog(lsINFO) && !missingNodes1.empty())
if (ShouldLog (lsINFO, Ledger) && !missingNodes1.empty())
{
Log(lsINFO) << missingNodes1.size() << " missing account node(s)";
Log(lsINFO) << "First: " << missingNodes1[0];
}
mTransactionMap->walkMap(missingNodes2, 32);
if (sLog(lsINFO) && !missingNodes2.empty())
if (ShouldLog (lsINFO, Ledger) && !missingNodes2.empty())
{
Log(lsINFO) << missingNodes2.size() << " missing transaction node(s)";
Log(lsINFO) << "First: " << missingNodes2[0];