mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Logging reductions.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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());
|
||||
|
||||
@@ -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)
|
||||
<< " / "
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user