Raft tracepoint at election completion

This commit is contained in:
Pavel Kirienko
2015-05-11 13:29:13 +03:00
parent d623eee54a
commit 706e72cc74
2 changed files with 4 additions and 3 deletions
@@ -165,6 +165,7 @@ class RaftCore : private TimerBase
if (num_votes_received_in_this_campaign_ > 0)
{
trace(TraceRaftElectionComplete, num_votes_received_in_this_campaign_);
const bool won = num_votes_received_in_this_campaign_ >= cluster_.getQuorumSize();
UAVCAN_TRACE("dynamic_node_id_server::distributed::RaftCore", "Election complete, won: %d", int(won));