More logging

This commit is contained in:
JoelKatz
2013-07-03 09:20:53 -07:00
parent 5b6e9f9f9b
commit b2943d0b53
2 changed files with 4 additions and 1 deletions

View File

@@ -294,6 +294,7 @@ void NetworkOPs::runTransactionQueue ()
if (theApp->getHashRouter ().swapSet (txn->getID (), peers, SF_RELAYED)) if (theApp->getHashRouter ().swapSet (txn->getID (), peers, SF_RELAYED))
{ {
WriteLog (lsDEBUG, NetworkOPs) << "relaying";
protocol::TMTransaction tx; protocol::TMTransaction tx;
Serializer s; Serializer s;
dbtx->getSTransaction ()->add (s); dbtx->getSTransaction ()->add (s);
@@ -304,6 +305,8 @@ void NetworkOPs::runTransactionQueue ()
PackedMessage::pointer packet = boost::make_shared<PackedMessage> (tx, protocol::mtTRANSACTION); PackedMessage::pointer packet = boost::make_shared<PackedMessage> (tx, protocol::mtTRANSACTION);
theApp->getPeers ().relayMessageBut (peers, packet); theApp->getPeers ().relayMessageBut (peers, packet);
} }
else
WriteLog(lsDEBUG, NetworkOPs) << "recently relayed";
} }
txn->doCallbacks (r); txn->doCallbacks (r);

View File

@@ -146,7 +146,7 @@ TER TransactionEngine::applyTransaction (const SerializedTransaction& txn, Trans
} }
} }
else else
WriteLog (lsDEBUG, TransactionEngine) << "Not applying transaction"; WriteLog (lsDEBUG, TransactionEngine) << "Not applying transaction " << txID;
if (didApply) if (didApply)
{ {