Better logging.

This commit is contained in:
JoelKatz
2012-05-31 21:13:23 -07:00
parent 18a9f12555
commit 6b94200637

View File

@@ -717,7 +717,7 @@ void Peer::recvGetLedger(newcoin::TMGetLedger& packet)
if (packet.itype() == newcoin::liTS_CANDIDATE)
{ // Request is for a transaction candidate set
std::cerr << "Received request for TX candidate set data" << std::endl;
Log(lsINFO) << "Received request for TX candidate set data";
Ledger::pointer ledger;
if ((!packet.has_ledgerhash() || packet.ledgerhash().size() != 32))
{
@@ -729,6 +729,7 @@ void Peer::recvGetLedger(newcoin::TMGetLedger& packet)
map = theApp->getOPs().getTXMap(txHash);
if (!map)
{
Log(lsERROR) << "We do not hav the map our peer wants";
punishPeer(PP_INVALID_REQUEST);
return;
}