Logging reductions.

This commit is contained in:
JoelKatz
2013-02-19 15:41:03 -08:00
parent 7c7944a82c
commit 4d6bf6fd43
5 changed files with 13 additions and 8 deletions

View File

@@ -455,7 +455,7 @@ void LedgerMaster::tryPublish()
{
for (uint32 seq = mPubLedger->getLedgerSeq() + 1; seq <= mValidLedger->getLedgerSeq(); ++seq)
{
cLog(lsDEBUG) << "Trying to publish ledger " << seq;
cLog(lsTRACE) << "Trying to publish ledger " << seq;
Ledger::pointer ledger;
uint256 hash;

View File

@@ -199,7 +199,12 @@ namespace websocketpp
void websocketLog(websocketpp::log::alevel::value v, const std::string& entry)
{
if (websocketPartition.doLog(lsDEBUG))
if (v == websocketpp::log::alevel::DEVEL)
{
if (websocketPartition.doLog(lsTRACE))
Log(lsDEBUG, websocketPartition) << entry;
}
else if (websocketPartition.doLog(lsDEBUG))
Log(lsDEBUG, websocketPartition) << entry;
}

View File

@@ -44,13 +44,13 @@ void OrderBookDB::setup(Ledger::ref ledger)
OrderBook::pointer book = OrderBook::newOrderBook(entry);
if (book)
{
cLog(lsDEBUG) << "OrderBookDB: found book";
cLog(lsTRACE) << "OrderBookDB: found book";
if (mKnownMap.find(book->getBookBase()) == mKnownMap.end())
{
mKnownMap[book->getBookBase()] = true;
cLog(lsDEBUG) << "OrderBookDB: unknown book in: "
cLog(lsTRACE) << "OrderBookDB: unknown book in: "
<< STAmount::createHumanCurrency(book->getCurrencyIn())
<< " -> "
<< STAmount::createHumanCurrency(book->getCurrencyOut());

View File

@@ -90,7 +90,7 @@ bool Pathfinder::bDefaultPath(const STPath& spPath)
{
if (2 == spPath.mPath.size()) {
// Empty path is a default. Don't need to add it to return set.
cLog(lsDEBUG) << "findPaths: empty path: direct";
cLog(lsTRACE) << "findPaths: empty path: direct";
return true;
}
@@ -285,8 +285,8 @@ bool Pathfinder::findPaths(const unsigned int iMaxSteps, const unsigned int iMax
continue;
}
cLog(lsDEBUG) << "findPaths: finish? account: " << (speEnd.mAccountID == mDstAccountID);
cLog(lsDEBUG) << "findPaths: finish? currency: " << (speEnd.mCurrencyID == mDstAmount.getCurrency());
cLog(lsTRACE) << "findPaths: finish? account: " << (speEnd.mAccountID == mDstAccountID);
cLog(lsTRACE) << "findPaths: finish? currency: " << (speEnd.mCurrencyID == mDstAmount.getCurrency());
cLog(lsTRACE) << "findPaths: finish? issuer: "
<< RippleAddress::createHumanAccountID(speEnd.mIssuerID)
<< " / "

View File

@@ -79,7 +79,7 @@ bool ValidationCollection::addValidation(SerializedValidation::ref val)
}
}
cLog(lsINFO) << "Val for " << hash << " from " << signer.humanNodePublic()
cLog(lsDEBUG) << "Val for " << hash << " from " << signer.humanNodePublic()
<< " added " << (val->isTrusted() ? "trusted/" : "UNtrusted/") << (isCurrent ? "current" : "stale");
if (val->isTrusted())
theApp->getLedgerMaster().checkAccept(hash);