Better logging

This commit is contained in:
Julien CLEMENT 2020-05-07 13:46:02 +02:00
parent 6757f2df8f
commit df518d4f8a

@ -96,7 +96,12 @@ namespace paxos
{ {
int last_tried = ledger.last_tried(); int last_tried = ledger.last_tried();
if (last_tried > ballot) if (last_tried > ballot)
{
log("But it was discarded because an higher ballot ("
+ std::to_string(last_tried) + ") as been found before", red);
return; return;
}
while (last_tried + (int)legislators.size() < ballot) while (last_tried + (int)legislators.size() < ballot)
{ {