From a62c72d79bd43ed14dc47f3d25a1ebc5b3a9703f Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Sun, 10 Feb 2013 21:48:42 -0800 Subject: [PATCH] More verbose logging about publishing. --- src/cpp/ripple/NetworkOPs.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cpp/ripple/NetworkOPs.cpp b/src/cpp/ripple/NetworkOPs.cpp index bdceb63c45..7891b8dc98 100644 --- a/src/cpp/ripple/NetworkOPs.cpp +++ b/src/cpp/ripple/NetworkOPs.cpp @@ -1339,6 +1339,8 @@ void NetworkOPs::pubAcceptedTransaction(Ledger::ref lpCurrent, const SerializedT void NetworkOPs::pubAccountTransaction(Ledger::ref lpCurrent, const SerializedTransaction& stTxn, TER terResult, bool bAccepted, TransactionMetaSet::pointer& meta) { boost::unordered_set notify; + int iProposed = 0; + int iAccepted = 0; { boost::recursive_mutex::scoped_lock sl(mMonitorLock); @@ -1356,6 +1358,7 @@ void NetworkOPs::pubAccountTransaction(Ledger::ref lpCurrent, const SerializedTr { BOOST_FOREACH(InfoSub* ispListener, simiIt->second) { + ++iProposed; notify.insert(ispListener); } } @@ -1368,6 +1371,7 @@ void NetworkOPs::pubAccountTransaction(Ledger::ref lpCurrent, const SerializedTr { BOOST_FOREACH(InfoSub* ispListener, simiIt->second) { + ++iAccepted; notify.insert(ispListener); } } @@ -1375,6 +1379,7 @@ void NetworkOPs::pubAccountTransaction(Ledger::ref lpCurrent, const SerializedTr } } } + cLog(lsINFO) << boost::str(boost::format("pubAccountTransaction: iProposed=%d iAccepted=%d") % iProposed % iAccepted); // FIXME: This can crash. An InfoSub can go away while we hold a regular pointer to it. if (!notify.empty()) @@ -1401,6 +1406,8 @@ void NetworkOPs::subAccount(InfoSub* ispListener, const boost::unordered_setinsertSubAccountInfo(naAccountID, uLedgerIndex); }