Improve logging.

This commit is contained in:
JoelKatz
2012-10-28 18:27:31 -07:00
parent 1382e2c7b2
commit 32799f76ca
2 changed files with 32 additions and 24 deletions

View File

@@ -1153,6 +1153,7 @@ void Peer::recvLedger(ripple::TMLedgerData& packet)
{
if (packet.nodes().size() <= 0)
{
cLog(lsWARNING) << "Ledger data with no nodes";
punishPeer(PP_INVALID_REQUEST);
return;
}