Better logging
This commit is contained in:
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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user